Forum Moderators: coopster

Message Too Old, No Replies

Print dynamic page to PDF

         

Pico_Train

1:03 pm on Feb 5, 2010 (gmt 0)

10+ Year Member



Hi there,

I'm looking into adding some functionality to print some of my pages to pdf. The pages will all be dynamically generated and consist of tables and a logo or two and text.

What should I use? I have done a bit of research but have only really come across stuff being done on static text which isnt particularly helpful.

Thanks!

Pico_Train

6:45 am on Feb 8, 2010 (gmt 0)

10+ Year Member



No takers?

Pico_Train

12:32 pm on Feb 8, 2010 (gmt 0)

10+ Year Member



Right, I've tried a few classes now and still nothing viable. My pages are dynamic depending on the id of an invoice. They are secure pages requiring a login and valid session to be active.

If I had any hair left, I would be pulling it out out of frustration.

Any help, tips and ideas would be great.

Thanks!

caribguy

1:44 pm on Feb 8, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I suspect you have seen these classes and libraries?

[fpdf.org...] - a PHP class which allows to generate PDF files with pure PHP

[code.google.com...] - Render pages as PDF documents or PostScript files

A google search for HTML2PDF+PHP brings up a tutorial on creating pdf document from dynamic pages among the first couple of results...

Pico_Train

6:56 pm on Feb 8, 2010 (gmt 0)

10+ Year Member



Yes indeed, have tried a couple of those, the furthest I got was one pdfing my login page because the pages I want to pdf are login protected I tried a few different things but I couldn't get around my login.