Closed iyyappan13391 closed 7 years ago
Hi!
Try this, I just added it for you:
https://github.com/LucianoGanga/simple-headless-chrome/blob/master/examples/printToPdf.js
It's available since version v4.3.8.
The method printToPDF was to print the PDF buffer, but you needed to save it. The method savePdf() does that for you ;)
Cheers! Lucho
Thanks,Its working fine.
const HeadlessChrome = require('../index') const browser = new HeadlessChrome({ headless: true }) async function navigateWebsite() { try { await browser.init()
} navigateWebsite()
This is my code.I've referred the documents,When i use the printToPDF function,not getting the PDF output.Can you provide the solutions of it?