Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for app to render PDF docs out of PHP 1

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
I know there are some LIBs and/or CLASSES one can use to generate PDF documents but I am looking for a turn-key solution I can use within my website.

It does not have to be free :cool:

This is what I am looking at:
Working on PHP scripts to render Graphs/Charts of monthly activity. I have been asked to produce these in PDF as well. The primary reason to this are: Possibly email as attachment AND printing.


So, what's out there I could buy, install and start piping my HTML pages through to produce PDF documents. It would be nice if it has command line capabilities.

OS: SCO UNIX or W2K3

Thanks!

 
I use JPGraph for all kinds of graphs and ezpdf to create the pdf docs.

Mark
 
I am looking to create some pdf's, I'm finding a lot of tutorials suggesting what's easier and faster, but some of them are pretty old.

Which one is the best to use now?

I see JPadie recommends dompdf, why?

If I just need to create simple 1 page documents (a certificate of completion) is dompdf the right choice for me.

What about pdflib, the tutorial I found on it seemed really easy, but I don't think my pdflib is installed on my machine so I got a "undefined function pdf_new()" error.

I copied the php_pdf.dll to my ext dir. and uncommented the .ini file. but my phpinfo() file doesn't mention pdf anywhere. Am I missing something?

Please help.
 
You must make sure you include/load proper extensions. You may need to edit your php.ini or php.conf document. Perhaps, running a script with phpinfo() is a good way to see if needed extensions are ON.

The project I was working on, I simply opted to use JS to load content onto a window with ability to print the document and redesign content so that it fits on a page.

Not a permanent solution as I know page owner is going to come back to me asking to produce PDF some time in the near future.

I hate to say that I have not experimented with any PDF solution but like you, will be looking at jpadie suggestion very soon.



 
i recommended dompdf simply because it needs very little development knowledge. you just pump in html and out comes a pdf. that means you could use output buffering to capture a complete page and then easily create a pdf from it. with other pdf extensions you need to have a basic understanding of the anatomy of a pdf file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top