sidebase / nuxt-pdf

📄 A easy to use, pdf exporting module to convert Nuxt 3 components into downloadable PDFs.
https://sidebase.io/nuxt-pdf/getting-started
MIT License
102 stars 11 forks source link

Decouple HTML to PDF logic from saving functionality for improved flexibility #17

Closed tpkee closed 7 months ago

tpkee commented 7 months ago

Sometime I need to customise the pdf instance further instead of saving it directly, or outright open it in a new tab as a preview. This PR decouples the HTML to PDF conversion logic from the saving function to enable retrieving the converted PDF result for additional manipulation, rather than direct saving.

Closes # .

Checklist:

zoey-kaiser commented 7 months ago

Hi @tpkee 👋

Thanks for your contribution. I just made a new release with our changes. You can pull them in version 0.1.2 https://www.npmjs.com/package/@sidebase/nuxt-pdf