PdfTextBoxField
class represents the text box field objects.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access text box field
let field: PdfTextBoxField = document.form.fieldAt(0) as PdfTextBoxField;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
number[]
Gets the background color of the field.
PdfInteractiveBorder
Gets the width, style and dash of the border of the field.
number[]
Gets the border color of the field.
Object
Gets the bounds.
number[]
Gets the fore color of the field.
string
Gets the default value of the field.
boolean
Gets a value indicating whether the field is allow to export data or not.
boolean
Gets the boolean flag indicating whether the form field have been flattened or not.
PdfFont
Gets the font of the field.
PdfForm
Gets the form object of the field (Read only).
PdfHighlightMode
Gets the highlight mode of the field.
boolean
Meaningful only if the MaxLength property is set and the Multiline, Password properties are false. If set, the field is automatically divided into as many equally spaced positions, or combs, as the value of MaxLength, and the text is laid out into those combs.
boolean
Gets the flag indicating whether the auto resize text enabled or not. Note: Applicable only for newly created PDF fields.
number
Gets the count of the loaded field items (Read only).
string
Gets the mapping name to be used when exporting interactive form field data from the document.
number
Gets the maximum length of the field, in characters.
boolean
Gets a value indicating whether this PdfTextBoxField
is multiline.
string
Gets the name of the field (Read only).
PdfPage
Gets the page object of the form field (Read only).
boolean
Gets a value indicating whether this PdfTextBoxField
is password.
boolean
Gets a value indicating whether read only.
boolean
Gets a value indicating whether the field is required.
number
Gets the rotation angle of the field.
PdfRotationAngle
Gets the rotation of the field (Read only).
boolean
Gets a value indicating whether this PdfTextBoxField
is scrollable.
boolean
Gets a value indicating whether to check spelling.
number
Gets the tab index of annotation in current page.
string
Gets the value of the text box field.
PdfTextAlignment
Gets the text alignment in a text box.
string
Gets the tool tip of the form field.
PdfFormFieldVisibility
Gets the form field visibility.
boolean
Gets a value indicating the visibility of the field (Read only).
Gets the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
name | string |
Key. |
Returns string
Gets the field item as PdfWidgetAnnotation
at the specified index.
Parameter | Type | Description |
---|---|---|
index | number |
Item index. |
Returns PdfWidgetAnnotation
Remove the specified form field item.
Parameter | Type | Description |
---|---|---|
item | PdfWidgetAnnotation |
Item to remove. |
Returns void
Remove the form field item from the specified index.
Parameter | Type | Description |
---|---|---|
index | number |
Item index to remove. |
Returns void
Sets the flag to indicate the new appearance creation.
Parameter | Type | Description |
---|---|---|
value | boolean |
Set appearance. |
Returns void
Sets the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
name | string |
Key. |
value | string |
Value associated with the key.. |
Returns void