docgen icon indicating copy to clipboard operation
docgen copied to clipboard

you can use webkitgtk module to avoid building custom qtwebkit

Open kapouer opened this issue 9 years ago • 2 comments

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 !

kapouer avatar Mar 31 '15 16:03 kapouer

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

mtmacdonald avatar Mar 31 '15 16:03 mtmacdonald

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.

kapouer avatar Mar 31 '15 17:03 kapouer