tags:

views:

117

answers:

2

Hi,

I've been reading up on creating a PDF file with PHP and am wondering what the easiest option is.

1) Create a PDF template and then open it and replace placeholder text -- which function do I use to open an existing pdf for editing?

2) Create a PDF template and the place text on it using co-ordinates

3) Create a html document then convert it to PDF using some sort of free tool?

4) Create a PDF from scratch using PHP. // This seams like a time consuming way to do it.

Thanks!

B

+1  A: 

The one that i know of as being best is the FPDF. It is great open-source solution for creating all sorts of PDF layouts. Thanks

See FPDF tutorials
And scripts

Sarfraz
Thanks for this! It's a nice library! Even downloaded a rounded corner function from here to make my Rect()'s look purdy: http://carl.pappenheim.net/d/12406
Samuurai
that is great news then :)
Sarfraz
+1  A: 

Time consuming but best results.. I use Fpdf

I have also had some success with html2pdf which tries to convert html to a pdf document.

Tim