You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
Helpful Notes:
The text was updated successfully, but these errors were encountered: