docgen
docgen copied to clipboard
you can use webkitgtk module to avoid building custom qtwebkit
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 !
Thanks, looks very nice. Can this handle multiple input pages, headers/footers, and table of contents generation like wkhtmltopdf can?
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.