Closed hansparsons closed 6 years ago
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);
You can check API in https://github.com/Szpadel/chrome-headless-render-pdf/blob/master/index.d.ts
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);