Crate papermake

Source
Expand description

Papermake is a PDF generation library that uses Typst templates with associated schemas to render PDFs from structured data.

Re-exports§

pub use error::PapermakeError;
pub use error::Result;
pub use schema::Schema;
pub use schema::SchemaField;
pub use schema::FieldType;
pub use schema::SchemaBuilder;
pub use template::Template;
pub use template::TemplateId;
pub use template::TemplateBuilder;
pub use render::render_pdf;
pub use render::RenderOptions;
pub use render::RenderResult;
pub use storage::Storage;
pub use cache::CachedTemplate;
pub use cache::TemplateCache;

Modules§

cache
Template-level caching for improved performance
error
Error types for the papermake library
macros
Macros for ergonomic schema and template definition
render
PDF rendering functionality
schema
Schema definition for templates
storage
Storage abstraction for templates
template
Template handling for Typst documents
typst

Macros§

schema
Macro for declarative schema definition

Functions§

version
Get the library version