Create custom PDF generation crate #6

Open
opened 2025-09-04 12:05:53 +00:00 by BobdaFett · 1 comment
BobdaFett commented 2025-09-04 12:05:53 +00:00 (Migrated from github.com)

This crate should be built on top of printpdf if possible. It needs to simplify the creation of paragraphs (with text wrapping!), tables, headers, and other such required information. It should also make adding and using fonts as simple as possible, although this can happen in funny ways.

This crate, if made properly, can be spun off into something that works with other applications that we can create. The more modular, the better.

This crate should be built on top of `printpdf` if possible. It needs to simplify the creation of paragraphs (with text wrapping!), tables, headers, and other such required information. It should also make adding and using fonts as simple as possible, although this can happen in funny ways. This crate, if made properly, can be spun off into something that works with other applications that we can create. The more modular, the better.
BobdaFett commented 2025-10-23 16:42:59 +00:00 (Migrated from github.com)

We've decided to instead use a more hybrid approach with typst-cli. We may still create our own structures that allow users to easily alter the document themselves, however these structures will end up creating a .typ file (or just a String we save) that acts as a universal template for the documents that are sent to providers.

This command must use the stdin and stdout pipes, that way unnecessary files are not created during document compilation. This is important for space efficiency, because space isn't free.

We've decided to instead use a more hybrid approach with `typst-cli`. We may still create our own structures that allow users to easily alter the document themselves, however these structures will end up creating a `.typ` file (or just a `String` we save) that acts as a universal template for the documents that are sent to providers. This command *must* use the `stdin` and `stdout` pipes, that way unnecessary files are not created during document compilation. This is important for space efficiency, because space isn't free.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: r15-software-dev/scholarships-rs#6