THPDFOCMDPolicy Type
Selects the /P visibility policy of an optional content membership dictionary (v2.502.0; ISO 32000-1 8.11.2.2)
Declaration
THPDFOCMDPolicy= (ocmpAnyOn, ocmpAllOn, ocmpAnyOff, ocmpAllOff);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
ocmpAnyOn | /AnyOn: the membership is visible when at least one listed OCG is ON; this is the PDF default when /P is absent |
ocmpAllOn | /AllOn: visible only when every listed OCG is ON |
ocmpAnyOff | /AnyOff: visible when at least one listed OCG is OFF |
ocmpAllOff | /AllOff: visible only when every listed OCG is OFF |
Usage notes
- Pass a value of this type to THotPDF.AddLoadedOptionalContentMembership together with the list of OCG object numbers; the policy name (AnyOn, AllOn, AnyOff, AllOff) is written verbatim to /P
- ocmpAnyOn is written explicitly even though it is the spec default, so the produced file states its intent
- The policy combines with the /VE visibility expression entry when both are present in the membership dictionary