PuppeteerPdfGeneratorScript
class PuppeteerPdfGeneratorScript(directory: File, out: File, node: NodeJsWrapper, npm: NpmWrapper, noSandbox: Boolean = false)
Script-like generator of a PDF from HTML through Puppeteer via Node.js.
Parameters
directory
directory containing the index.html
file
out
output PDF file to be written
node
Node.js executable wrapper
npm
NPM executable wrapper
noSandbox
whether to disable Chrome sandbox for PDF export
Constructors
Link copied to clipboard
constructor(directory: File, out: File, node: NodeJsWrapper, npm: NpmWrapper, noSandbox: Boolean = false)