Skip to main content

Module doc_info

Module doc_info 

Source
Expand description

The document information dictionary (ISO 32000-1 §14.3.3): the trailer’s /Info entry, carrying human-authored metadata — title, author, subject, keywords, the producing software, and creation/modification timestamps.

This is the classic pdfinfo-style surface. (PDF 2.0 deprecates /Info in favour of the catalog’s XMP /Metadata stream for most keys, but /Info is still ubiquitous; an XMP reader can be layered on later.) Dates are reported as their raw PDF date strings (D:YYYYMMDDHHmmSSOHH'mm'); no date parsing is attempted here.

Structs§

DocInfo
Metadata from the document information dictionary. Every field is optional — producers populate an arbitrary subset.

Functions§

parse_info
Parse the trailer’s /Info dictionary. Returns None when the document carries no /Info, or it resolves to nothing usable (no populated fields).