PTPDFLayerViewController

@interface PTPDFLayerViewController : UITableViewController <PTOverridable>

The PTPDFLayerViewController class displays a list of the document’s Optional Content Groups (OCGs), also known as layers.

The visibility of each layer can be toggled on or off using this control.

  • An array of PDF layers (Optional Content Groups) and their state (visibility) in the current context

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) NSArray<PTLayerInfo *> *_Nonnull layers;

    Swift

    var layers: [PTLayerInfo] { get set }
  • Returns a new instance of a PTPDFLayerViewController.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPDFViewCtrl:
        (nonnull PTPDFViewCtrl *)pdfViewCtrl;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)
  • An object that conforms to the PTPDFLayerViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, readwrite, nullable)
        id<PTPDFLayerViewControllerDelegate>
            delegate;

    Swift

    weak var delegate: PTPDFLayerViewControllerDelegate? { get set }