Closed ellier7 closed 5 years ago
Does that work?
RenderPDF.generatePdfBuffer('http://google.com', {includeBackground: true}).then((pdfBuffer) => {
console.log(pdfBuffer);
});
You can check detailed interface in https://github.com/Szpadel/chrome-headless-render-pdf/blob/master/index.d.ts
And yes, what @Prinzhorn said is correct
I am not sure how to add the options to include background when using this code:
ex: const RenderPDF = require('chrome-headless-render-pdf');
RenderPDF.generatePdfBuffer('http://google.com') .then((pdfBuffer) => { console.log(pdfBuffer); });