Contents
- Methods
Having trouble getting help?
Contact Support
Contact Support
FormDesigner
12 Sep 20254 minutes to read
The FormDesigner module is used to handle form designer actions of PDF viewer.
Methods
addFormField
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
clearSelection
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
deleteFormField
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
getRgbToHex
Get the Hex value from the RGB value.
| Parameter | Type | Description |
|---|---|---|
| color | any |
It describes about the color |
Returns string
resetFormField
Reset the form fields into its original state.
| Parameter | Type | Description |
|---|---|---|
| formFieldId |
string | object
|
It describes about the form field id |
Returns void
selectFormField
Select the form field in the PDF Viewer.
| Parameter | Type | Description |
|---|---|---|
| formFieldId |
string | object
|
It describes about the form field id |
Returns void
setFormFieldMode
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
updateFormField
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