Overview of krilla
mainkrilla is a high-level Rust crate designed for creating PDF files. It abstracts the complexities of the PDF format by providing high-level 2D graphics primitives such as fills, strokes, gradients, glyphs, and images. It is built on top of the pdf-writer crate.
Target Use Case
krilla is ideal for libraries that already have an intermediate representation of layouted content (e.g., from HTML or other sources) and need to translate that layout into a PDF.
Note: krilla is a low-level graphics library for PDF generation. It does not handle high-level document layout tasks like text layouting, table creation, page breaking, or inserting headers/footers. For those tasks, consider using typst.