I am using node-html-pdf in my application which works awesome. I have something like
On the server
Meteor.methods generatePDF: (html, filename) -> options = filename: '/home/Files/pdfs/' + filename + '.pdf' phantomPath: "/home/Apps/phantomjs/bin/phantomjs" pdf.create(html, options).toFile (err, res) -> return
On the client
Meteor.call 'generatePDF', html, 'meteor.pdf'
And this works like a charm, but now I wonder how can I serve this file to the client, also It would be awesome if the server method returns the file to the client automatically ? Is that possible ?