public class FormManager extends Object
PdfDocument.
| Constructor and Description |
|---|
FormManager(InternalPdfDocument internalPdfDocument)
Please get FormManager by
PdfDocument.getForm() instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
flatten()
Flattens a document (make all form fields non-editable).
|
void |
flatten(PageSelection pageSelection)
Flattens a document (make all form fields non-editable).
|
FormFieldsSet |
getFields()
Get a collection of the user-editable form fields within a PDF document
|
void |
renameField(String currentFieldName,
String newFieldName)
Rename a
FormField |
void |
setFieldReadOnly(String fieldName,
boolean value)
Set the is read only value of a
FormField |
void |
setFieldValue(String fieldName,
String value)
Set the string value of a
FormField |
void |
setTextFieldFont(String textFieldName,
FontTypes font,
int fontSize)
Set the font of a
TextField |
public FormManager(InternalPdfDocument internalPdfDocument)
PdfDocument.getForm() instead.internalPdfDocument - the internal pdf documentpublic final void flatten()
public final void flatten(PageSelection pageSelection)
pageSelection - Selected page indexes. Default is all pages.public FormFieldsSet getFields()
public void renameField(String currentFieldName, String newFieldName)
FormFieldcurrentFieldName - Current fully qualified field namenewFieldName - New partial field name Please use a fully qualified field name for
CurrentFieldName, and a partial field name for NewFieldNamepublic void setFieldValue(String fieldName, String value)
FormFieldfieldName - Fully qualified field namevalue - New valuepublic void setFieldReadOnly(String fieldName, boolean value)
FormFieldfieldName - Fully qualified field namevalue - is read onlyCopyright © 2022–2023 Iron Software. All rights reserved.