class HexaPDF::Type::OptionalContentMembership

Parent

Represents an optional content membership dictionary.

A membership dictionary allows more complex visibility policies, like:

  • Content that should be visible when a certain optional content group is off instead of on.

  • Content that should be visible when all of a number of OCGs are on.

See: PDF2.0 s8.11.2.2

Field Definitions

NameType/Allowed ValuesRequiredDefault Value
TypeSymboltrue:OCMD
OCGsHexaPDF::Type::OptionalContentGroup or HexaPDF::PDFArray or Hash or Arrayfalsenil
PSymbol
One of: :AllOn, :AnyOn, :AnyOff, :AllOff
false:AnyOn
VEHexaPDF::PDFArray or Arrayfalsenil