Apryse SDK allows you to browse OCG layers associated with the document.
A PDF OCG (Optional Content Groups) dictionary represents a collection of graphic objects that can be made visible or invisible. Any graphic content of the PDF can be made optional, including page contents, XObjects, and annotations.
The PdfLayerDialogFragment
allows you to browse OCG layers associated with the document. You can selectively render layers based on their states. In a tree view of nested layers, if the parent layer is hidden, the child layers are automatically hidden as well. If the parent layer is visible, child layers can be made visible or hidden.
A PDF OCG (Optional Content Groups) dictionary represents a collection of graphic objects that can be made visible or invisible. Any graphic content of the PDF can be made optional, including page contents, XObjects, and annotations.
The PTPDFLayerViewController
allows you to browse OCG layers associated with the document being viewed by a PTPDFViewCtrl
. You can selectively render layers based on their states.
PDF layer browser.
The PDF layer control is part of the Tools library, so make sure you have added the Tools library to your project.
To create a new PDF layer view controller instance and display it from another view controller, supply a PTPDFViewCtrl
instance to the PTPDFLayerViewController
designated initializer:
The PDF layer view controller is designed to be presented in a popover on iPads. To do so, you must provide the PTPDFLayerViewController
's PopoverPresentationController
with either:
SourceRect
ANDSourceView
OR
as in the example above.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales