Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated PDF Creation from URL [closed]

Is there a PDF library that one can use to automate creating PDFs from URLs? The current approach I use is to "Print" a page and select a PDF plugin like PrimoPDF to generate the PDF document but I was wanting to automate that.

like image 830
t3rse Avatar asked Aug 28 '08 20:08

t3rse


People also ask

How do you turn a URL into a PDF?

The fastest way to convert an open web page to PDF is to use the Adobe PDF toolbar. If you have the toolbar installed in your browser, simply select the Convert To PDF tool. Give your new PDF file a name, select Save, and voila — the conversion is done.


2 Answers

ABCPDF can do it

like image 192
Danimal Avatar answered Oct 13 '22 20:10

Danimal


wkhtmltopdf generates the most accurate PDFs out of web pages that I have ever found. It renders them in WebKit and converts this to PDF, so the PDF will look exactly like the web page, including all styles and other fancy things.

Just use it like this:

wkpdfhtmltopdf http://www.whatever.com/page.html page.pdf
like image 3
Alasdair Avatar answered Oct 13 '22 18:10

Alasdair