PSPDFTextFieldFormElement


@interface PSPDFTextFieldFormElement : PSPDFFormElement

Text field form element.

  • If set, the field may contain multiple lines of text; if clear, the field’s text shall be restricted to a single line.

    Note

    Evaluates PSPDFTextFieldFlagMultiline in the fieldFlags.

    Declaration

    Objective-C

    @property (readonly, getter=isMultiline, nonatomic) BOOL multiline;

    Swift

    var isMultiline: Bool { get }
  • If set, the field is intended for entering a secure password that should not be echoed visibly to the screen.

    Note

    Evaluates PSPDFTextFieldFlagPassword in the fieldFlags.

    Declaration

    Objective-C

    @property (readonly, getter=isPassword, nonatomic) BOOL password;

    Swift

    var isPassword: Bool { get }
  • Returns the contents formatted based on rules in the annotation (including JavaScript)

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *formattedContents;

    Swift

    var formattedContents: String? { get }
  • The input format. Some forms are number/date/time specific.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFTextInputFormat inputFormat;

    Swift

    var inputFormat: PSPDFTextInputFormat { get }
  • Returns the parent property formField cast to the appropriate PSPDFTextFormField type.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) PSPDFTextFormField *textFormField;

    Swift

    var textFormField: PSPDFTextFormField? { get }