OCG Enumerations

  • PTOCDrawMode controls drawing or enumerating the page with respect to optional content. Together with the value of SetNonOCDrawing this mode controls drawing or enumerating content on a page with optional content:

    • Content that is marked as optional content is drawn or not drawn according to the PTOCDrawMode and the visibility state as determined by the Optional Content Groups (OCGs) and OCMDs.
    • Content that is not marked as optional content is drawn when GetNonOCDrawing() is true, and not drawn when GetNonOCDrawing() is false.
    See more

    Declaration

    Objective-C

    enum PTOCDrawMode {}

    Swift

    struct PTOCDrawMode : Equatable, RawRepresentable
  • Visibility Policy Type. A Visibility Policy is used to determine whether an PDF::Element is visible in a given OCG::Context, depending on whether all groups in OCGs array are ON or OFF, or when any of the groups is ON or OFF.

    See more

    Declaration

    Objective-C

    enum PTVisibilityPolicyType {}

    Swift

    struct PTVisibilityPolicyType : Equatable, RawRepresentable