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
npm install
node open.js
This also opens your web-browser pointing to your locally running html2pdf.it:
node .
If you want to host html2pdf.it yourself, you will have to ask your host if they support hosting Node.js applications.
If your host does not support Node.js, you'll need to find a new host that does. Check out Heroku or Nodejitsu for example.
npm test
You can use the CSS attribute:
page-break-before: always;
You can use data URIs like the following to generate PDFs for arbitrary HTML:
data:text/html;encoding=utf-8,<h1>Hello</h1>
As described on Wikipedia, the data URI should have the following format:
data:[<media type>][;base64],<data>
MIT