PDF Templating (Web Based)

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Ruski
Forum Commoner
Posts: 28
Joined: Thu May 26, 2005 3:45 am

PDF Templating (Web Based)

Post by Ruski »

Dear Users,

I am again in need of some advice.

I looking to build a PDF templating system with dynamic bits of text using PHP and mySQL. The typical scenario would include a user creating html code from a wysiwyg such as TinyMSE or similar and then generating a PDF from the created HTML code. Some text in the html code will be dynamic and specified by tags such as <USERNAME> will be replaced by the required text.

At the moment I am planning to use libarary called DOMPDF which generates PDFs from html code as input, but after numerous attempts I have concluded that its no where near enough accurate and consistent. The main problem being that dompdf doesnt like the way the wysiwyg produces the html and doesnt really produce great results.

Now I am willing to go in a different direction and open to idea on what other systems am I able to use that will produce exactly the same results as you see on a web based editor.

Any ideas welcome, if more information is required please state so.

Thanks in advance
Alex
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: PDF Templating (Web Based)

Post by JNettles »

I've used FPDF and FPDI in the past. Not really sure what your needs are but you can check those two libraries out. FPDF wasn't overly difficult to use and it worked well.
Post Reply