tags:

views:

33

answers:

4

Hello, i want using php generate a pdf in my site with some format and some values i have into some vars, any suggestion of a good script and good practices to know about? Thanks!

A: 

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.

gabe3886
A: 

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.

youssef azari
A: 

You might want to checkout TCPDF. Have a look at the examples, and see how easy it is to create PDFs with PHP.

wimvds
A: 

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.

3x3cut3r