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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With