4

I'm looking for a node.js module, which is able to generate PDF from HTML.

I know there are many options e.g. phantomjs, wkhtmltopdf. All this utilities require some command line tools.

I need something, that is easy to install (only npm install xxx) and is ready for use. I also don't want to call it by requests (REST API). Do anybody know something? Thanks in advance.

Vivek Pradhan
  • 4,777
  • 3
  • 26
  • 46

1 Answers1

4

You might want to give pdfkitjs or pdfmake a try. Both the projects are available as npm modules and are pretty well documented on github.

Vivek Pradhan
  • 4,777
  • 3
  • 26
  • 46
  • pdfmake's note "_links to the documentation do NOT work yet_" does not look like indicator that something is pretty well documented and [semver](http://semver.org/) major version number 0 also does not look like indicator of a reliable tool for public use (anyway I'm voting +1) – xmojmr Nov 21 '14 at 07:47
  • 2
    @xmojmr, you're right. But the repo is pretty active and the issues raised are addressed by the developers promptly as far as pdfmake is concerned. I get your point though, thanks for mentioning it :) – Vivek Pradhan Nov 21 '14 at 08:33
  • 1
    @xmojmr Getting started + playground samples cover pretty much everything so after writing it I decided not to duplicate the docs :) – bartekp Dec 23 '14 at 15:30
  • @bartekp my compliments to the pdfmake author. The most up-to-date documentation can be found at http://pdfmake.org/#/gettingstarted ? – xmojmr Dec 23 '14 at 16:02
  • 1
    @xmojmr yes, it's the most up-to-date source of information – bartekp Jan 10 '15 at 02:17