PTFormFillTool
@interface PTFormFillTool : PTTool
This tool is used to fill PDF forms (AcroForms). This includes text boxes, check boxes, radio buttons, drop downs, and more.
Signatures fields are handled by the PTDigitalSignatureTool.
-
Whether an
inputAccessoryViewis shown for text fields (single and multi-line). The default value isYES.Declaration
Objective-C
@property (nonatomic) BOOL displaysInputAccessoryView;Swift
var displaysInputAccessoryView: Bool { get set } -
Whether the text in a single or multi-line text field is limited to fit within the field. When the field is full, no more text can be added.
The default value is
NO.Declaration
Objective-C
@property (nonatomic) BOOL textFieldContentsFitBounds;Swift
var textFieldContentsFitBounds: Bool { get set } -
Whether the
UITextViewshown for interactive editing of multi-line text fields will be used to create the appearance of the form.The default value is
NO.Declaration
Objective-C
@property (nonatomic) BOOL useTextViewAppearance;Swift
var useTextViewAppearance: Bool { get set } -
Advances the active form field to the next field.
Declaration
Objective-C
- (BOOL)moveToNextField;Swift
func moveToNextField() -> BoolReturn Value
trueif active field was successfully moved;falseotherwise. -
Advances the active form field to the previous field.
Declaration
Objective-C
- (BOOL)moveToPreviousField;Swift
func moveToPreviousField() -> BoolReturn Value
trueif active field was successfully moved;falseotherwise. -
Selects the specified annotation.
Declaration
Objective-C
- (BOOL)selectAnnotation:(nonnull PTAnnot *)annotation onPageNumber:(unsigned int)pageNumber;Swift
func selectAnnotation(_ annotation: PTAnnot, onPageNumber pageNumber: UInt32) -> BoolParameters
annotationthe annotation to be selected.
pageNumberthe page number of the annotation
Return Value
trueif the annotation was selected,falseotherwise.
PTFormFillTool Class Reference