I am using Puppeteer to generate PDF files, using static HTML as the source:
const page = await browser.newPage(); await page.setContent(html); //html is read