vendredi 14 septembre 2018

html-pdf conversions

I am currently using the npm module html-pdf to turn my html code to a pdf. It works when I run my app locally, however when I deploy the pdf does not save. This is what my call in server.js looks like

  pdf.create(content, options).toFile('../../../file.pdf', function(err, res) {
console.log(res);
response.send('sucess'); });




Aucun commentaire:

Enregistrer un commentaire