Closed EwanValentine closed 6 years ago
Hi folks,
Any ideas what might be causing the issues in this screenshot?
I'm running this in an AWS Lambda. I've also tried running it locally, I get the same results. I'm using the basic config:
const fs = require('fs'); const conversion = require('phantom-html-to-pdf')(); const report = (content) => { return new Promise((resolve, reject) => { conversion({ html: content, waitForJS: true, }, (err, pdf) => { if (err) { reject(err); } const output = fs.createWriteStream('report.pdf'); pdf.stream.pipe(output); resolve(true); }); }); }; module.exports = { report, };
This was totally my mistake. Please ignore (dodgy html tables).
Hi folks,
Any ideas what might be causing the issues in this screenshot?
I'm running this in an AWS Lambda. I've also tried running it locally, I get the same results. I'm using the basic config: