Sysrq147
Sysrq147

Reputation: 1367

MeteorJS and PDF generation

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

Answers (2)

Dmitrijs Balcers
Dmitrijs Balcers

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

Mário
Mário

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

Related Questions