PSPDFTextFieldFormElement

Objective-C


@interface PSPDFTextFieldFormElement : PSPDFFormElement

Swift

class TextFieldFormElement : FormElement

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) 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) BOOL password;

    Swift

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

    Declaration

    Objective-C

    @property (readonly, nullable) NSString *formattedContents;

    Swift

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

    Declaration

    Objective-C

    @property (readonly) PSPDFTextInputFormat inputFormat;

    Swift

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

    Declaration

    Objective-C

    @property (readonly, nullable) PSPDFTextFormField *textFormField;

    Swift

    var textFormField: PSPDFTextFormField? { get }