PTDocumentViewController

A view controller that displays a PTPDFViewCtrl along with other controls.

  • Controls the visibility of the freehandButtonItem in the navigation bar.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isFreehandButtonHidden, assign, readwrite, nonatomic)
        BOOL freehandButtonHidden;

    Swift

    var isFreehandButtonHidden: Bool { get set }
  • Controls the visibility of the annotationButtonItem in the navigation bar.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isAnnotationToolbarButtonHidden, assign, readwrite, nonatomic)
        BOOL annotationToolbarButtonHidden;

    Swift

    var isAnnotationToolbarButtonHidden: Bool { get set }
  • Changes the active tool to the freehand markup tool (PTFreeHandCreate or PTPencilDrawingCreate).

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull freehandButtonItem;

    Swift

    var freehandButtonItem: UIBarButtonItem { get }
  • Shows the PTAnnotationToolbar toolbar for annotating.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull annotationButtonItem;

    Swift

    var annotationButtonItem: UIBarButtonItem { get }
  • Undos the last change to the document.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UIBarButtonItem *_Nonnull undoButtonItem;

    Swift

    var undoButtonItem: UIBarButtonItem { get }
  • Redoes the last undone change to the document.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UIBarButtonItem *_Nonnull redoButtonItem;

    Swift

    var redoButtonItem: UIBarButtonItem { get }
  • Whether the annotation toolbar is hidden. The default value is NO.

    Declaration

    Objective-C

    @property (getter=isAnnotationToolbarHidden, assign, readwrite, nonatomic)
        BOOL annotationToolbarHidden;

    Swift

    var isAnnotationToolbarHidden: Bool { get set }