Reputation: 1367
What is the best way for generating PDF in MeteorJS project. Is there some example of using classcraft:meteor-wkhtmltopdf smart package for generating PDF ?
Is it possible to generate PDF from template (PDF built out of template) in MeteorJS project ?
Upvotes: 2
Views: 2724
Reputation: 157
You could use a wonderful npm package for this: https://github.com/sgentle/phantomjs-node. Using this package you will be able to generate pdf using any HTML template. This information might be useful for you as well: http://blog.feedhenry.com/server-side-pdf-generation-node-js/
To require npm package from Meter follow this link: https://github.com/meteorhacks/npm#using-packages.
Upvotes: 2
Reputation: 1612
Check this package: https://atmospherejs.com/ongoworks/pdf
According to the README file:
A Meteor package that allows you to save a Meteor template as a PDF on the client. This package is simply a nice wrapper around jsPDF.
Upvotes: 3