ComPDF React Native - v3.0.0
    Preparing search index...

    Interface CPDFTextFieldAttr

    Attributes for a text field widget used in PDF forms.

    These properties control the appearance and basic behavior of text fields when rendering or creating form widgets in the reader/editor.

    interface CPDFTextFieldAttr {
        type: "textField";
        fillColor?: `#${string}`;
        borderColor?: `#${string}`;
        borderWidth?: BorderWidth;
        fontColor?: `#${string}`;
        fontSize?: FontSize;
        alignment?: CPDFAlignment;
        multiline?: boolean;
        familyName?: string;
        styleName?: string;
    }
    Index

    Properties

    type: "textField"
    fillColor?: `#${string}`

    Background fill color of the text field.

    borderColor?: `#${string}`

    Border color of the text field.

    borderWidth?: BorderWidth

    Border width of the text field.

    fontColor?: `#${string}`

    Text (font) color used for the field value.

    fontSize?: FontSize

    Font size used for the field value.

    alignment?: CPDFAlignment

    Text alignment inside the field.

    multiline?: boolean

    Whether the field supports multiple lines.

    familyName?: string

    Optional font family name to use for the field text.

    styleName?: string

    Optional text style name (e.g., bold/italic) to use for the field text.