PHP generates PDF the best class mpdf,php generated pdfmpdf
Mpdf's official download address: Http://www.mpdf1.com/mpdf/download
After the download there are instances, you can refer to do one to know. Of course, the official website also has examples, website: http://mpdf1.com/common/mpdf/examples/
Documents provided by the Government: http://mpdf1.com/manual/
USEADOBECJK = true; $mpdf->setautofont (Autofont_all); Gets the static file to generate $html=file_get_contents (' template.html '); echo $html; exit; Set PDF header Content $header= '
'; Set PDF footer Content $footer= '
|
Footer |
Page number: {PAGENO}/{NB} |
'; Add headers and footers to PDF $mpdf->sethtmlheader ($header); $mpdf->sethtmlfooter ($footer); Set the PDF display mode $mpdf->setdisplaymode (' fullpage '); Set the size of the PDF to 270mm*397mm//$mpdf->writehtml ('
'); Create PDF file $mpdf->writehtml ($html); Delete the first page of the PDF (one more page due to the size of the PDF)//$mpdf->deletepages; Output Pdf$mpdf->output (); Exit;?>
http://www.bkjia.com/PHPjc/1078397.html www.bkjia.com true http://www.bkjia.com/PHPjc/1078397.html techarticle PHP generate PDF The best class mpdf,php generate pdfmpdf mpdf official download Address: Http://www.mpdf1.com/mpdf/download After the download there are instances, you can refer to do one to know. Of course the official ...