Closed metachris closed 8 years ago
Hi,
this has something to do with encoding problem when you toString buffer and pass it to writeFileSync...
The best answer I can give you right now is to pass the resp.content
buffer directly to the writeFilteSync
fs.writeFileSync(output_fn, resp.content);
Thanks, this did the trick! Works 👍
Thanks, this did the trick! Works 👍
Hi mechris I have the same issue, can you show me how your example looks?
jsreport-phantom-pdf
always produces an empty PDF, even with the example from the README:Producing HTML output works fine with handlebars or jsrender, but phantom-pdf always produces the same PDF without any kind of text. Same result with
phantomjs-prebuilt
andcustomPhantomJS: true
.PhantomJs version of the standard include:
PhantomJs version of phantomjs-prebuilt:
Node module versions: