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

Convert Svelte components into PDF as input type #53

Open
3 tasks
uvulpos opened this issue May 14, 2023 · 0 comments
Open
3 tasks

Convert Svelte components into PDF as input type #53

uvulpos opened this issue May 14, 2023 · 0 comments

Comments

@uvulpos
Copy link

uvulpos commented May 14, 2023

As a developer of a frontend only project, I need a way to create a PDF and give the user a nice interface to preview and download his / her documentation.

The document includes svelte components and currently gets exported via the print engine of the browser. I wish I could just give the PDF library my Svelte Component as an input and in return get a way to display its content in a preview.

Possible ACs:

  • it is possible to accept svelte component as input type
  • it is possible to convert svelte into PDF using the browser api
  • it is possible to download the created PDF

Helpful Notes:

  • The User K J suggested using a library called html2pdf.js to convert HTML into PDF, and it looks very promising in my codepen test environment, so maybe integrating that would be already halfway of the solution. See Stackoverflow Post
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

No branches or pull requests

1 participant