PTDocumentViewController
@interface PTDocumentViewController
: PTDocumentBaseViewController <PTOverridable, PTAnnotationToolbarDelegate>
A view controller that displays a PTPDFViewCtrl
along with other controls.
-
The document view controller’s delegate object.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTDocumentViewControllerDelegate> delegate;
Swift
weak var delegate: (any PTDocumentViewControllerDelegate)? { get set }
-
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
orPTPencilDrawingCreate
).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 }
-
The
PTAnnotationToolbar
managed by this view controller.Declaration
Objective-C
@property (nonatomic, strong) PTAnnotationToolbar *_Nonnull annotationToolbar;
Swift
var annotationToolbar: PTAnnotationToolbar { get set }
-
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 }