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 inputAccessoryView is shown for text fields (single and multi-line). The default value is YES.

    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 UITextView shown 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() -> Bool

    Return Value

    true if active field was successfully moved; false otherwise.

  • Advances the active form field to the previous field.

    Declaration

    Objective-C

    - (BOOL)moveToPreviousField;

    Swift

    func moveToPreviousField() -> Bool

    Return Value

    true if active field was successfully moved; false otherwise.

  • Selects the specified annotation.

    Declaration

    Objective-C

    - (BOOL)selectAnnotation:(nonnull PTAnnot *)annotation
                onPageNumber:(unsigned int)pageNumber;

    Swift

    func selectAnnotation(_ annotation: PTAnnot, onPageNumber pageNumber: UInt32) -> Bool

    Parameters

    annotation

    the annotation to be selected.

    pageNumber

    the page number of the annotation

    Return Value

    true if the annotation was selected, false otherwise.