Typst as a React component or Web component for preview AND download as PDF #3673
nileshtrivedi
started this conversation in
Ideas
Replies: 1 comment
-
There are typst.ts project, it has React integration |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use Typst to show preview of a report in a webapp and also allow the user to download the report as PDF? It would be similar to Typst webapp but I don't need the editing capabilities because these reports would be programmatically generated by my app.
Ideally, this would be a component that runs completely inside the browser so that I don't need to deploy a backend / docker container. One complication I foresee is passing SVG files for figures and charts to this component.
jsPDF has this capability which is completely client-side: http://raw.githack.com/MrRio/jsPDF/master/index.html
I'm wondering if something similar is possible that lets me use Typst syntax.
Beta Was this translation helpful? Give feedback.
All reactions