Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor template to pdf

Tags:

meteor

Is it possible to convert one of my meteor templates to a pdf file? ie. build a template and then within meteor code point to it and save as a file/data maintaining the formatting and style etc.

I have had a look at pdfkit but as far as I can tell this requires manually building the pdf in code.

like image 646
A_L Avatar asked Mar 14 '14 09:03

A_L


1 Answers

Try phantomjs. Follow their rasterize example to generate the pdf. You should load this library only on the server side as it's a big one.

like image 137
manu Avatar answered Sep 21 '22 15:09

manu