Reputation:
I have some documents in HTML and i need it to be printed/generated on server (no UI, automated, linux based).
I'm very satisfied with Google Chrome "html to pdf" of the documents but i'm wondering is it possible to use that "component" of "html to pdf" printing engine from Google Chrome Browser somehow for this purpose?
Upvotes: 6
Views: 8728
Reputation: 508
If you needed an HTTP API service to convert HTML to PDF from an URL you may want to check this answer that I wrote that explains how to do it.
Example:
https://dhtml2pdf.herokuapp.com/api.php?url=https://www.github.com&result_type=show
shows in the browser the PDF generated of the site https://www.github.com
.
Hope it helps.
Upvotes: 0
Reputation:
Actually i found the solution: First one wkhtmltopdf http://code.google.com/p/wkhtmltopdf/
And at the end i realized that mpdf (php lib) can help me too :)
Upvotes: 5