Generate PDFs from any web-page. You need Node.js to run it.
See it in action at: html2pdf.it.
Works out of the box on both Windows and Ubuntu. On Mac you need to:
brew install phantomjs
To get started you need to clone the repository, cd to it and run:
Running webserver locally
This also opens your web-browser pointing to your locally running html2pdf.it:
If you want to host html2pdf.it yourself, you will have to ask your host if they support hosting Node.js applications.
You can use the CSS attribute:
You can use data URIs like the following to generate PDFs for arbitrary HTML:
As described on Wikipedia, the data URI should have the following format: