Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comparison with https://github.com/GoogleChrome/puppeteer ? #36

Closed
graingert opened this issue Aug 16, 2017 · 1 comment
Closed

comparison with https://github.com/GoogleChrome/puppeteer ? #36

graingert opened this issue Aug 16, 2017 · 1 comment
Labels

Comments

@graingert
Copy link

graingert commented Aug 16, 2017

https://github.com/GoogleChrome/puppeteer

@westy92
Copy link
Owner

westy92 commented Aug 23, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants