Skip to main content

Module pdf

Module pdf 

Source
Expand description

Document assembly: pages of canvas content, document metadata, and the save path. Pdf is a plain struct — the fields are the composition, and Default fills everything optional.

Structs§

Date
A calendar date and time with a UTC offset, for /CreationDate and /ModDate. The writer never reads a clock — dates appear in output only when a caller provides them, keeping builds reproducible.
LinkAnnotation
A clickable rectangle on a page that opens a URI (a /Link annotation with a /URI action; ISO 32000 §12.5.6.5, §12.6.4.7).
Metadata
Document information written to the /Info dictionary. Every field is optional; an all-None value writes no dictionary at all.
Page
One page: its size, rotation, painted content and link annotations.
Pdf
A document under construction. The fields are the composition: singleton slots are Options, pages keep the order given.

Enums§

PageSize
A page size, in default user-space units (1/72 inch), portrait.