THotPDF.AddLoadedOptionalContentMembership Method

Builds an Optional Content Membership Dictionary (ISO 32000-1 8.11.2.2) whose visibility depends on several optional content groups combined by one policy

Declaration

function AddLoadedOptionalContentMembership(const OCGIndices: array of Integer; Policy: THPDFOCMDPolicy): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
OCGIndicesIndices of the optional content groups included in /OCGs
PolicyCombination policy: AnyOn, AllOn, AnyOff, or AllOff

Return value

Object number of the new OCMD dictionary, for attaching to a page or XObject /OC entry

Usage notes

Related APIs