Is possible convert directly HTML into a pdf file using Zend_Pdf?, if so, How can I do that?
相关问题
- Views base64 encoded blob in HTML with PHP
- Correctly parse PDF paragraphs with Python
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
tcpdf is a little limited when it comes to html, wkhtmltopdf uses webkit
i've used dompdf https://github.com/dompdf/dompdf its pretty easy and straight forward. it even reads/formats css.
Check out MPDF . The ultimate one. Create your html with inline css, store it in one php variable and echo to pdf file. you are done!!!
Zend_PDF
isn't able to generate PDF based on HTML. But you can render view and use other library for convert it to PDF. I've done such thing with TCPDF. Little code snippet below: