i want using php generate a pdf in my site with so开发者_如何学运维me format and some values i have into some vars, any suggestion of a good script and good practices to know about? Thanks!
You can make an ajax call to your php and then push the generated PDF to the browser.
you can create PDF server side with this.
Using a HTML to PDF generator is probably the best way. The one I have found the easiest to use, and use regularly, is http://www.tufat.com/s_html2ps_html2pdf.htm
It can be daunting at first, but once you get used to it it's fine.
You might want to checkout TCPDF. Have a look at the examples, and see how easy it is to create PDFs with PHP.
if you have shell access, you can use http://www.pd4ml.com/ for converting html to pdf. its really easy, but its not free and you need shell access.
精彩评论