Skip to main content

Module optional_content

Module optional_content 

Source
Expand description

Optional-content (layer) configuration: the catalog’s /OCProperties default configuration determines which optional-content groups render. Membership evaluation for /OC entries (OCG refs, OCMDs and visibility expressions) lives in zpdf-content, which has the object graph in hand; this module only answers “is group X on?”.

Structs§

OcConfig
The document’s default optional-content configuration (/OCProperties /D).

Functions§

parse_oc_config
Parse /OCProperties from the document catalog. Returns None when the document declares no optional content.