Creating PDF’s using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Mr Tech
Forum Contributor
Posts: 424
Joined: Tue Aug 10, 2004 3:08 am

Creating PDF’s using PHP

Post by Mr Tech »

What I am wanting to do is create a PDF ideally from HTML code. I found a class called [dompdf](http://www.digitaljunkies.ca/dompdf/index.php) but I'm having issues with font and page breaks.

Does anyone know of another script or even a better way in general to generate PDF files?

The reason why I am converting HTML to PDF is because I want someone to use a WYSIWYG editor to create the contents and click save to generate their PDF file...

Any input would be greatly apprecaited
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Creating PDF’s using PHP

Post by Christopher »

There is another project that does this around somewhere. It uses htmlkit/safari to render the HTML to PDF via command line calls. It is tricky to install and you need full access to the server.
(#10850)
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Creating PDF’s using PHP

Post by Technocrat »

User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Creating PDF’s using PHP

Post by Technocrat »

Post Reply