Typst as a React component or Web component for preview AND download as PDF #3673
Locked
nileshtrivedi
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
There are typst.ts project, it has React integration |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions