Helper and Abstract Classes
-
An object that manages the controls for adding new pages to a document. New pages can be created from blank page templates (e.g. lined, grid, dotted), added from other documents, or created from images.
See moreDeclaration
Objective-C
@interface PTAddPagesManager : NSObject <PTOverridable, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIDocumentPickerDelegate, VNDocumentCameraViewControllerDelegate, PTPageTemplateViewControllerDelegate>Swift
class PTAddPagesManager : NSObject, PTOverridable, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIDocumentPickerDelegate, VNDocumentCameraViewControllerDelegate, PTPageTemplateViewControllerDelegate -
This class is used to easily add an analytics framework to tools. Events of interest are be passed to (a subclass of) this generic class, and can then passed on to the analytics framework(s) of your choice.
See moreDeclaration
Objective-C
@interface PTAnalyticsHandlerAdapter : NSObjectSwift
class PTAnalyticsHandlerAdapter : NSObject -
An object that contains options for a type of annotation.
See moreDeclaration
Objective-C
@interface PTAnnotationOptions : NSObject <NSCopying, NSCoding>Swift
class PTAnnotationOptions : NSObject, NSCopying, NSCoding -
A
See morePTAnnotationPasteboardinstance facilitates annotation copying and pasting on the behalf of aPTPDFViewCtrlorPTToolManagerinstance. Annotation pasteboards can be shared between multiple PDFViewCtrls, viewers, tabs, etc. to allow annotations to be easily copied between documents.Declaration
Objective-C
@interface PTAnnotationPasteboard : NSObjectSwift
class PTAnnotationPasteboard : NSObject -
This class wraps a
See morePTAnnotand is used to store style appearance and property information before the information is saved back to the annotation.Declaration
Objective-C
@interface PTAnnotStyle : NSObject <NSCopying, NSCoding, PTOverridable>Swift
class PTAnnotStyle : NSObject, NSCopying, NSCoding, PTOverridable -
A utility class for managing user bookmarks. Note the the PDF specification does not account for user bookmarks. Therefore user bookmarks are non-portable between PDF readers. PDFNet for iOS stores the bookmarks in the iOS user preferences.
The bookmark data is an NSArray of NSDictionary-s. Each NSDictionary represents a bookmark. The NSDictionary entries are: {@“page-number” : NSNumber numberWithInt}, {@“sdf-obj-number” : NSNumber numberWithInt}, {@“name” : NSString}, {@“unique-id” : NSString (a UUID string)}
See moreDeclaration
Objective-C
@interface PTBookmarkUtils : NSObjectSwift
class PTBookmarkUtils : NSObject -
Allows the user to interact with and set values of choice fields (list boxes).
See moreDeclaration
Objective-C
@interface PTChoiceFormViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> -
Used to persist annotion properties to user defaults so that the next annotation of that type that is created can have the same properties.
See moreDeclaration
Objective-C
@interface PTColorDefaults : NSObjectSwift
class PTColorDefaults : NSObject -
The PTDigSigView is used for creating signature path appearances. The view tracks and saves user touches, drawing strokes with the specified color and thickness.
See moreDeclaration
Objective-C
@interface PTDigSigView : UIView <PTFontPickerViewControllerDelegate>Swift
class PTDigSigView : UIView, PTFontPickerViewControllerDelegate -
The PTDigSigViewController allows the user to draw a signature or select an image for a signature form field. A certificate can be used for digital signing.
See moreDeclaration
Objective-C
@interface PTDigSigViewController : UIViewController <PTOverridable, UIImagePickerControllerDelegate, UINavigationControllerDelegate>Swift
class PTDigSigViewController : UIViewController, PTOverridable, UIImagePickerControllerDelegate, UINavigationControllerDelegate -
The PTEditToolbar is used while creating certain annotation types and provides buttons for saving or discarding changes, as well as an optional undo/redo interface.
See moreDeclaration
Objective-C
@interface PTEditToolbar : UIToolbar <PTOverridable>Swift
class PTEditToolbar : UIToolbar, PTOverridable -
The PTFloatingSigViewController allows the user to add signatures anywhere on a document. A default signature can be saved for subsequent use.
See moreDeclaration
Objective-C
@interface PTFloatingSigViewController : UIViewController <PTOverridable, UIImagePickerControllerDelegate, UINavigationControllerDelegate>Swift
class PTFloatingSigViewController : UIViewController, PTOverridable, UIImagePickerControllerDelegate, UINavigationControllerDelegate -
This class handles the creation of a UIPresentationController that displays its contents covering a portion of the screen, anchored to the bottom of the screen.
See moreDeclaration
Objective-C
@interface PTHalfModalPresentationManager : NSObject <UIViewControllerTransitioningDelegate, UIPopoverPresentationControllerDelegate> -
Crops image stamp annotations, created by the
See morePTImageStampCreatetool. -
A view controller that displays and allows editing of an annotation’s popup note.
See moreDeclaration
Objective-C
@interface PTNoteEditController : UIViewController <PTOverridable>Swift
class PTNoteEditController : UIViewController, PTOverridable -
The
See morePTOverridesclass is used to register overridden subclasses of classes defined in the Tools library. Once a class conforming to thePTOverridableprotocol has been “overridden”, whenever an instance of the original class would be created the subclass is used instead.Declaration
Objective-C
@interface PTOverrides : NSObjectSwift
class PTOverrides : NSObject -
Utility methods for the Tools framework.
See moreDeclaration
Objective-C
@interface PTToolsUtil : NSObjectSwift
class PTToolsUtil : NSObject -
The view for the small resize handles that appear for annotation resizing with a
See morePTSelectionRectContainerView.Declaration
Objective-C
@interface PTResizeWidgetView : UIView -
Undocumented
See moreDeclaration
Objective-C
@interface PTRubberStampManager : NSObject<PTOverridable> /** * The light red color */ @property (nonatomic, class, strong, readonly) PTRubberStampColorModel *lightRed; /** * The dark red color */ @property (nonatomic, class, strong, readonly) PTRubberStampColorModel *darkRed; /** * The light green color */ @property (nonatomic, class, strong, readonly) PTRubberStampColorModel *lightGreen; /** * The light blue color */ @property (nonatomic, class, strong, readonly) PTRubberStampColorModel *lightBlue; /** * The yellow color */ @property (nonatomic, class, strong, readonly) PTRubberStampColorModel *yellow; /** * The purple color */ @property (nonatomic, class, strong, readonly) PTRubberStampColorModel *purple; /** * All the colors on rubber stamp in an array. */ @property (nonatomic, class, strong, readonly) NSArray<PTRubberStampColorModel*> *stampColors; /** * Used to determine the number of standard stamps. * * @return the number of standard stamps. */ -(NSUInteger)numberOfStandardStamps; /** * Used to determine the number of custom stamps. * * @return the number of custom stamps. */ -(NSUInteger)numberOfCustomStamps; /** * An array of standard rubber stamp appearances. * This should be an array of `PTCustomStampOption`s */ @property (nonatomic, copy, nullable) NSArray<PTCustomStampOption*> *standardStampOptions; /** * An array of custom rubber stamp appearances. * This should be an array of `PTCustomStampOption`s */ @property (nonatomic, copy, nullable) NSArray<PTCustomStampOption*> *customStampOptions; /** * The standard `APPROVED` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* approvedStamp; /** * The standard `AS IS` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* asIsStamp; /** * The standard `COMPLETED` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* completedStamp; /** * The standard `CONFIDENTIAL` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* confidentialStamp; /** * The standard `DEPARTMENTAL` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* departmentalStamp; /** * The standard `DRAFT` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* draftStamp; /** * The standard `EXPERIMENTAL` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* experimentalStamp; /** * The standard `EXPIRED` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* expiredStamp; /** * The standard `APPROVED` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* finalStamp; /** * The standard `FOR COMMENT` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* forCommentStamp; /** * The standard `FOR PUBLIC RELEASE` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* forPublicReleaseStamp; /** * The standard `INFORMATION ONLY` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* informationOnlyStamp; /** * The standard `NOT APPROVED` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* notApprovedStamp; /** * The standard `NOT FOR PUBLIC RELEASE` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* notForPublicReleaseStamp; /** * The standard `PRELIMINARY RESULTS` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* preliminaryResultsStamp; /** * The standard `SOLD` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* soldStamp; /** * The standard `TOP SECRET` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* topSecretStamp; /** * The standard `VOID` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* voidStamp; /** * The standard `SIGN HERE` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* signHereStamp; /** * The standard `WITNESS` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* witnessStamp; /** * The standard `INITIAL HERE` stamp. */ @property (nonatomic, class, strong, readonly) PTCustomStampOption* initialHereStamp; /** * * Saves a custom stamp created. * * @param stamp custom stamp created. * */ -(void) saveCustomStampOption:(PTCustomStampOption *)stamp; /** * * Returns an image of the stamp with a given `PTCustomStampOption` appearance. * * @param height The desired height of the output image. * * @param width The desired width of the output image. * * @param stampOption A `PTCustomStampOption` appearance object. * * @return A rasterized copy of the signature. * */ +(UIImage*)getBitMapForStampWithHeight:(double)height width:(double)width option:(PTCustomStampOption*)stampOption; @endSwift
class PTRubberStampManager : NSObject, PTOverridable -
A text selection end bar.
See moreDeclaration
Objective-C
@interface PTSelectionBar : UIView -
A transparent container view for the shaded
See morePTSelectionRectViewand the resize widgets.Declaration
Objective-C
@interface PTSelectionRectContainerView : UIView <PTOverridable>Swift
class PTSelectionRectContainerView : UIView, PTOverridable -
For use when editing line and arrow annotations, where the selection rectangle is not shown when the annotation is not being moved, and has a different appearance than other annotation types.
See moreDeclaration
Objective-C
@interface PTSelectionRectView : UIViewSwift
class PTSelectionRectView : UIView -
A cell for use by the
See morePTThumbnailsViewController.Declaration
Objective-C
@interface PTThumbnailViewCell : UICollectionViewCell -
A
See moreUICollectionViewLayoutfor use withPTThumbnailsViewController.Declaration
Objective-C
@interface PTThumbnailViewLayout : UICollectionViewFlowLayoutSwift
class PTThumbnailViewLayout : UICollectionViewFlowLayout -
The PTTool base class from which all stock tools derive. These tools implement the
See morePTToolSwitchingprotocol. For documentation on these methods, please see the protocol documentation, available at http://www.pdftron.comDeclaration
Objective-C
@interface PTTool : UIView <PTOverridable, UIGestureRecognizerDelegate, PTToolSwitching, PTNoteEditControllerDelegate, PTLinkPopupViewControllerDelegate, UIPopoverPresentationControllerDelegate, UIAdaptivePresentationControllerDelegate>Swift
class PTTool : UIView, PTOverridable, UIGestureRecognizerDelegate, PTToolSwitching, PTNoteEditControllerDelegate, PTLinkPopupViewControllerDelegate, UIPopoverPresentationControllerDelegate, UIAdaptivePresentationControllerDelegate -
The
PTToolGroupManagerclass maintains a list of tool groups, represented by instances of thePTToolGroupclass, each of which contain a set of available tools for that mode.This class is designed to work in conjuction with the
See morePTToolGroupToolbarclass to display the tool groups and provide interactive control over the current tool.Declaration
Objective-C
@interface PTToolGroupManager : NSObject <NSCoding, PTOverridable>Swift
class PTToolGroupManager : NSObject, NSCoding, PTOverridable -
The
See morePTToolManagerclass is responsbile for forwarding events from the PDFViewCtrl to Tools, and coordinating the control and data flow between tools.Declaration
Objective-C
@interface PTToolManager : UIView <PTOverridable, PTPDFViewCtrlToolDelegate, PTToolEvents, PTToolOptionsDelegate>Swift
class PTToolManager : UIView, PTOverridable, PTPDFViewCtrlToolDelegate, PTToolEvents, PTToolOptionsDelegate -
Creates signatures and manages saved ones.
See moreDeclaration
Objective-C
@interface PTSignaturesManager : NSObject <PTOverridable>Swift
class PTSignaturesManager : NSObject, PTOverridable -
Creates signatures and manages saved ones.
See moreDeclaration
Objective-C
@interface PTStampManager : NSObjectSwift
class PTStampManager : NSObject -
Tool for editing existing text markup annotations, such as highlights, underlines, etc. In addition to changing basic properties like colour and opacity, it can change the annotation’s size, and it’s type (e.g. turn a highlight into an underline).
See moreDeclaration
Objective-C
@interface PTTextMarkupEditTool : PTTextSelectToolSwift
class PTTextMarkupEditTool : PTTextSelectTool -
The loupe that is used during text selection.
See moreDeclaration
Objective-C
@interface PTMagnifierView : UIView <PTOverridable>Swift
class PTMagnifierView : UIView, PTOverridable -
A user bookmark for a page in a document.
See moreDeclaration
Objective-C
@interface PTUserBookmark : NSObjectSwift
class PTUserBookmark : NSObject
Helper and Abstract Classes Reference