mtmacdonald / docgen

A documentation tool
http://mtmacdonald.github.io/docgen
Other
45 stars 15 forks source link

you can use webkitgtk module to avoid building custom qtwebkit #12

Open kapouer opened 9 years ago

kapouer commented 9 years ago

Hi, i'm the maintainer of node-webkitgtk module, which is designed specifically for linux / webkit2gtk binary packages - it builds in seconds. Building a pdf out of html is as simple as require('webkitgtk')().load(url).wait('ready').pdf('filename.pdf', options) see the README for description of additionnal options. Cheers !

mtmacdonald commented 9 years ago

Thanks, looks very nice. Can this handle multiple input pages, headers/footers, and table of contents generation like wkhtmltopdf can?

kapouer commented 9 years ago

It only outputs what you tell it (a web page, or directly html) to print. Some javascript can also be injected, so you can do anything you need on top of your document, but it's up to you.