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

Generar PDF en el cliente #103

Open
pachi opened this issue Dec 22, 2023 · 0 comments
Open

Generar PDF en el cliente #103

pachi opened this issue Dec 22, 2023 · 0 comments

Comments

@pachi
Copy link
Collaborator

pachi commented Dec 22, 2023

Usaríamos Typst para crear el documento, en un proceso como

https://github.com/typst/typst/blob/main/crates/typst-cli/src/compile.rs

that's how typst-cli drives it
it's a little different cus typst-cli has a bunch of nice interface stuff
Seems like you need to create a world, call typst::compile, then typst::export, aaand that's it

https://github.com/typst/typst/blob/main/crates/typst-docs/src/html.rs#L433

here, this seems like the thing most similar to what you want. The Doc world has some constant fonts and libraries and stuff, and uses a custom source. No reading from files, just building the fonts and standard library statically :

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