The FormDesigner module is used to handle form designer actions of PDF viewer.
Adds form field to the PDF page.
| Parameter | Type | Description |
|---|---|---|
| formFieldType | FormFieldType |
It describes about the form field type |
| options (optional) | TextFieldSettings | PasswordFieldSettings | CheckBoxFieldSettings | DropdownFieldSettings | RadioButtonFieldSettings | ListBoxFieldSettings | SignatureFieldSettings | InitialFieldSettings |
It describes about the options |
| isCollection (optional) | boolean |
It describes about the isCollection |
| id (optional) | string |
It describes about the id |
Returns HTMLElement
Clears the selection of the form field in the PDF page.
| Parameter | Type | Description |
|---|---|---|
| formFieldId | string | object |
It describes about the form field id |
Returns void
Deletes the form field from the PDF page.
| Parameter | Type | Description |
|---|---|---|
| formFieldId | string | object |
It describes about the form field id |
| addAction | boolean |
It describes about the addAction |
Returns void
Get the Hex value from the RGB value.
| Parameter | Type | Description |
|---|---|---|
| color | any |
It describes about the color |
Returns string
Reset the form fields into its original state.
| Parameter | Type | Description |
|---|---|---|
| formFieldId | string | object |
It describes about the form field id |
Returns void
Select the form field in the PDF Viewer.
| Parameter | Type | Description |
|---|---|---|
| formFieldId | string | object |
It describes about the form field id |
Returns void
Set the form field mode to add the form field on user interaction.
| Parameter | Type | Description |
|---|---|---|
| formFieldType | FormFieldType |
It describes about the form field Id |
| options (optional) | Item[] |
It describes about the options |
Returns void
Update the form field with the given properties and value.
| Parameter | Type | Description |
|---|---|---|
| formFieldId | string | object |
It describes about the form field Id |
| options | TextFieldSettings | PasswordFieldSettings | CheckBoxFieldSettings | DropdownFieldSettings | RadioButtonFieldSettings | SignatureFieldSettings | InitialFieldSettings |
It describes about the options |
Returns void