interface FormControlType {
    getBackgroundColor: () => Promise<number[]>;
    getBorderColor: () => Promise<number[]>;
    getDict: () => Promise<null | PDFDictionaryType>;
    getField: () => Promise<null | FormFieldType>;
    getInterForm: () => Promise<null | InterFormType>;
    getRect: () => Promise<Rect>;
    getRotation: () => Promise<number>;
    getType: () => Promise<FPD_FormFieldType>;
    isChecked: () => Promise<boolean>;
    isDefaultChecked: () => Promise<boolean>;
    options?: Options;
    setBackgroundColor: (color: { color: number[] }) => Promise<void>;
    setBorderColor: (color: { color: number[] }) => Promise<void>;
    setRotation: (deg: number) => Promise<void>;
}

Implemented by

Properties

getBackgroundColor: () => Promise<number[]>

Gets the border color of the form control.

Type declaration

    • (): Promise<number[]>
    • Returns Promise<number[]>

      • The background color of the form control
getBorderColor: () => Promise<number[]>

Gets the border color of the form control.

Type declaration

    • (): Promise<number[]>
    • Returns Promise<number[]>

      • The border color of the form control
getDict: () => Promise<null | PDFDictionaryType>

Gets the dictionary of the form control.

Type declaration

getField: () => Promise<null | FormFieldType>

Gets the field of the form control.

Type declaration

getInterForm: () => Promise<null | InterFormType>

Gets the form widget from the inter form.

Type declaration

getRect: () => Promise<Rect>

Gets the rectangle of the form control.

Type declaration

    • (): Promise<Rect>
    • Returns Promise<Rect>

      • The rectangle of the form control
getRotation: () => Promise<number>

Gets the rotation of the form control.

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      • The rotation of the form control
getType: () => Promise<FPD_FormFieldType>

Gets the field type of the form control.

Type declaration

    • (): Promise<FPD_FormFieldType>
    • Returns Promise<FPD_FormFieldType>

      • The field type of the form control.
isChecked: () => Promise<boolean>

Gets the value of the form control.

Type declaration

    • (): Promise<boolean>
    • Returns Promise<boolean>

      • Whether the form control is checked
isDefaultChecked: () => Promise<boolean>

Gets the default checked state of the form control.

Type declaration

    • (): Promise<boolean>
    • Returns Promise<boolean>

      • Whether the form control is default checked
options?: Options
setBackgroundColor: (color: { color: number[] }) => Promise<void>

Sets the border color of the form control.

Type declaration

    • (color: { color: number[] }): Promise<void>
    • Parameters

      • color: { color: number[] }

        The background color to set.

      Returns Promise<void>

setBorderColor: (color: { color: number[] }) => Promise<void>

Sets the border color of the form control.

Type declaration

    • (color: { color: number[] }): Promise<void>
    • Parameters

      • color: { color: number[] }

        The color to set.

      Returns Promise<void>

setRotation: (deg: number) => Promise<void>

Sets the rotation of the form control.

Type declaration

    • (deg: number): Promise<void>
    • Parameters

      • deg: number

        The degree to set.

      Returns Promise<void>