#Typst C# bindings

4 messages · Page 1 of 1 (latest)

copper wharf
#

Hi all - just wanted to showcase some simple C# bindings for typst.
It allows pretty seamless usage of Typst directly from C# without having to call into the process. It also allows for changing the inputs, allowing it to be used as a very fast generation engine without the overhead of rebuilding the world.
https://github.com/evolvedlight/typstsharp
Let me know if it's useful and if the API makes sense - it's currently in the 0.0.x releases as I may see that the API needs tweaks.

Single file (.net 10) example in the screenshot.

GitHub

Typst binding for C#. Contribute to evolvedlight/typstsharp development by creating an account on GitHub.

untold lava
#

Can this binding be used for a project with multiple files and folder?

copper wharf
#

Yup, that works fine.

copper wharf
#

I made a quick example here of it batch producing 1000 PDFs with the complexity of plugins and multiple files.
https://github.com/evolvedlight/BatchTypstSharp
https://github.com/evolvedlight/BatchTypstSharp/actions/runs/19745882011/job/56579974586

GitHub

Demo Repo showing how to create 1000 pdfs. Contribute to evolvedlight/BatchTypstSharp development by creating an account on GitHub.

GitHub

Demo Repo showing how to create 1000 pdfs. Contribute to evolvedlight/BatchTypstSharp development by creating an account on GitHub.