PDA

View Full Version : Creating a PDF with PHP



Chris
02-01-2008, 11:24 AM
Anyone know if there is a way to create a PDF with PHP?

I have an upcoming project that is an automated document creation service, I would like the end result to be generated in PDF form if possible. Rather than just expecting it to be plain txt or html someone has to deal with.

Thoughts?

Westech
02-01-2008, 12:16 PM
http://php.net/pdf

Chris
02-01-2008, 12:48 PM
I should have searched before posting..

Actually I found this really good free class.

http://www.fpdf.org

Works without adding anything to your PHP install. Lots of free examples.

Westech
02-01-2008, 03:48 PM
http://www.fpdf.org

Works without adding anything to your PHP install. Lots of free examples.

Very cool! Thanks for sharing that.

Blue Cat Buxton
02-05-2008, 02:27 AM
This is an alternative that I am using on a site, which seems to work reasonably well

http://www.ros.co.nz/pdf

Chris
02-05-2008, 01:35 PM
This new service I'm doing is going to be nifty, you'll all like it I'm sure. Can't tell you want it is yet, but it is a small thing to code, comparatively, so I should have it done by March.

Todd W
02-05-2008, 04:54 PM
I was going to say I asked the same thing :lol:

Pretty spiffy :)

leo.bonnafe
02-05-2009, 06:49 AM
I use a library called phpLiveDocx. From their web site:

"phpLiveDocx allows PHP developers to generate documents by combining structured data from PHP with a template, created in a word processor. The resulting document can be saved as a PDF, DOCX, DOC or RTF file. The concept is the same as with mail-merge."

Learn more and download:
http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/

Leo