node-wkhtml icon indicating copy to clipboard operation
node-wkhtml copied to clipboard

Convert html to PDF or PNG format using the webkit rendering engine, and qt.

Results 8 node-wkhtml issues
Sort by recently updated
recently updated
newest added

In wkhtmltopdf 0.12 the command is "wkhtmltoimage" In the code index.js line 33 executable = 'wkhtmltoimg'

Specify a license to release this code under, otherwise it's copyrighted by default. I recommend the MIT License: https://tldrlegal.com/license/mit-license or Apache 2 https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)

As far as I can tell, the executable name wkhtmltoimg is either very old or never existed. Thus, I suggest changing it. The malformed package.json prevents the intallation throught npm.

I am new to node, can you tell me how I can generate an image using same code.

Could you provide an example that passes in some command-line options/arguments to wkhtml. Maybe I'm just dense, but I'm trying to set the page size (among other options) and this...

It would be nice to get only the generated pdf back in a buffer. Currently you return the stdin which contains also the executed command which leads to unusable pdfs...

currently , PDF.add works only on url and file type, but it doesn't work on html type: ``` javascript pdf = new PDF({ html:"html content 1" }); pdf.add({ html:"html content...