Forum Moderators: open

Message Too Old, No Replies

Report Post Creating a PDF from the HTML page

         

Rynman47

1:32 pm on Jul 17, 2009 (gmt 0)

10+ Year Member



Hey guys

I'd basically like the ability, for when a user clicks a button, for the page to be saved as a PDF file. Almost as if they had printed-to-pdf. Is this possible? If so, how can it be done?

Many thanks!

Brett_Tabke

9:29 pm on Jul 20, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Well, there are some ways to do it. First search on html-to-pdf and see the scripts that pop up. There are some good commercial solutions and a couple free sourceforge freeware ones as well.

The "print to pdf" would be within the browser. There are several freeware pdf printers out there (pdf95 is popular).

D_Blackwell

2:50 am on Aug 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should have a pretty good idea of which content pages are likely to be of enough interest that users may want to download a PDF or print.

I would fire up Adobe and create a PDF and provide a link. The file size is likely to be smaller, and you can 'tweak' the PDF for presentation. Your page might suck as PDF conversion, even though the content is worthy.

You might consider a print style sheet if the content is more likely to be printed and used - rather than downloaded and saved.

Mr Bo Jangles

7:50 am on Aug 12, 2009 (gmt 0)

10+ Year Member



If you want to do web-server-side html to pdf, it isn't that easy really, and quality of the pdf can depend on the content of your page e.g. types of fonts used, how much CSS etc.

There are some very expensive commercial solutions available(HighWire), and for a low cost solution, check out HTMLDOC.
But I haven't found what I'm looking for yet i.e. a cheap HighWire.