You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puppeteer is a library similar to the one we use (chrome-remote-interface) to interface with Chrome. Although you can use puppeteer for basic PDF generation, html-pdf-chrome has a richer and ever-growing feature set that will not be matched by puppeteer. Below is a more in-depth comparison.
puppeteer
html-pdf-chrome
Requires Node.js v7.10+
Requires Node.js v6+
Can interact with Chrome to do many tasks
Laser-focused on generating PDFs and other images
Can listen for page render completion a few ways before generating a PDF
Can listen many ways (and more are to be added!)
Takes in Chrome-specific parameters for generation
Currently takes in Chrome parameters but plans to expand
No such feature or plan
Custom headers/footers for each printed page (planned)
Generates PDF to a raw buffer or file
Can save to raw buffer, file, base64 string, and stream
https://github.com/GoogleChrome/puppeteer
The text was updated successfully, but these errors were encountered: