Szpadel/chrome-headless-render-pdf

unable to pass options when using programatically

Closed this issue · 1 comments

Hi,

how can we pass the options arguments when using the tool programmatically? i'm thinking something like this:

const RenderPDF = require('chrome-headless-render-pdf');
const options = {include-background: true, no-margins: true, page-ranges: '1'};
RenderPDF.generateSinglePdf( 'http://www.google.com', 'output.pdf', options);