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 (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isFreehandButtonHidden) 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 (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isAnnotationToolbarButtonHidden)
        BOOL annotationToolbarButtonHidden;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var isAnnotationToolbarHidden: Bool { get set }