Documentation
¶
Overview ¶
Package pdf renders reporting documents with Typst.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
OutputDir string
TemplatesDir string // Explicit directory, when nonempty.
TemplatesDirSource string // Optional flag or environment variable name for diagnostics.
ConfiguredTemplatesDirs []string // Candidates in documents.templatesDirectories order.
Overwrite bool
ProtectedPaths []string // Paths that must never be replaced.
}
Options configures file output and optional external Typst templates.
type Result ¶
Result lists the selected paths in order. Its first Written paths were published by this call, even if a later document failed.
func Write ¶
func Write(ctx context.Context, options Options, detailed *reporting.DetailedReport, summary *reporting.SummaryReport, invoice *reporting.Invoice) (Result, error)
Write renders the selected models with Typst and publishes each completed PDF separately. Nil models are omitted from rendering and path checks.