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 (atomic, 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 (atomic, 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 (atomic, readonly, nullable) NSString *formattedContents;

    Swift

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

    Declaration

    Objective-C

    @property (atomic, readonly) PSPDFTextInputFormat inputFormat;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var textFormField: PSPDFTextFormField? { get }