Expand description
Optional Content Membership Dictionary (OCMD) parsing.
Defined in ISO 32000-2 §8.11.2.2. An OCMD wraps a set of OCGs in a visibility predicate that’s more expressive than a single OCG ref:
/Pmembership policy over/OCGs—AllOn/AnyOn/AllOff/AnyOff. Default policy isAnyOn./VEvisibility expression — a nested array using/And//Or//Notoperators over OCG refs. Available since PDF 1.6.
/VE takes precedence over /P when both are present.
This module produces OcgVisibility values for the display
list. The matching evaluator lives in
stet_graphics::layer_set::LayerSet.
Functions§
- build_
ocmd_ visibility - Build an
OcgVisibilityfor an OCMD dict. - parse_
visibility_ expression - Parse an OCMD
/VEarray into aVisibilityExpr.