1
votes

I wrote a cross-platform application using node-webkit. I have the needs to generate PDF from HTML+CSS and to package and distribute my application to Win, Linux and Mac.

I have known some nice libraries such as, PhantomJS, wkhtmltopdf can do this stuff. But I don't know how to integrate these libs into my node-webkit and works cross-platforms?

Thx for any idea.

1
@staaar they focus on how to generate pdf. My question is mainly on how to integrate pdf generation lib(e.g. wkhtmltopdf, phantomjs) to node-webkit. - ppn029012

1 Answers

0
votes

You can try PDFKit

It's JavaScript so you don't need any external libs, just install it via npm.

Otherwise there is wkhtmltopdf npm package