tecnospeed / pastor

A RESTful API to generate PDF converting from HTML
MIT License
66 stars 13 forks source link

Accept printing options from the puppeteer API #6

Open gumieri opened 7 years ago

gumieri commented 7 years ago

Puppeteer documentation: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions

gumieri commented 7 years ago

It's important to block the option path. And it's important to allow define the "media" too using page.emulateMedia(media) (screen or the default print)