SnowdogApps / vuepress-plugin-pdf-export

Vuepress plugin for exporting as PDF without system wide dependencies suitable for headless environments
MIT License
29 stars 7 forks source link

Feature: Allow puppeteer options to specify page formatting #1

Closed aporan closed 4 years ago

aporan commented 4 years ago

Hi @Igloczek,

Thanks for the plugin!

While using it I realized I need some page formatting options. And Puppeteer's page.pdf() function takes in several parameters as specified here: https://github.com/puppeteer/puppeteer/blob/v2.1.1/docs/api.md#pagepdfoptions. It would be very helpful to pass those options from the plugins in vuepress to provide some custom page formatting operations, as the default is somewhat very basic.

aporan commented 4 years ago

The changes where quite simple, and I already made them in #2. Let me know if that's alright.