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

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

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

tpkee
Copy link
Contributor

@tpkee tpkee commented Nov 29, 2023

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:

  • issue number linked above after pound (#)
    • replace "Closes " with "Contributes to" or other if this PR does not close the issue
  • manually checked my feature / checking not applicable
  • wrote tests / testing not applicable
  • attached screenshots / screenshot not applicable

…ion, so that it is possible to retrieve the converted pdf result for further manipulation instead of saving directly
@zoey-kaiser zoey-kaiser merged commit d6abd9e into sidebase:main Dec 7, 2023
1 check passed
@zoey-kaiser
Copy link
Member

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

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

Successfully merging this pull request may close these issues.

2 participants