PTOCDrawMode

enum PTOCDrawMode {}

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.
  • Draw or enumerate optional content that is visible, according to the current state of Optional Content Groups (OCGs) and Optional Content Membership Dictionaries (OCMDs). This is the default mode.

    Declaration

    Objective-C

    e_ptVisibleOC
  • Draw or enumerate all optional content, regardless of its visibility state. If the context’s ‘SetNonOCDrawing’ is enabled, all contents of document are shown.

    Declaration

    Objective-C

    e_ptAllOC
  • Draw or enumerate no optional content, regardless of its visibility state. If the context’s ‘SetNonOCDrawing’ is not enabled, nothing is drawn, resulting in a blank page.

    Declaration

    Objective-C

    e_ptNoOC