Package com.ironsoftware.ironpdf.form
Class FormManager
java.lang.Object
com.ironsoftware.ironpdf.form.FormManager
Class used to read and write data to AcroForms in a 
PdfDocument.
 - 
Constructor SummaryConstructorsConstructorDescriptionFormManager(InternalPdfDocument internalPdfDocument) Please get FormManager byPdfDocument.getForm()instead.
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidflatten()Flattens a document (make all form fields non-editable).final voidflatten(PageSelection pageSelection) Flattens a document (make all form fields non-editable).Get a collection of the user-editable form fields within a PDF documentvoidrenameField(String currentFieldName, String newFieldName) Rename aFormFieldvoidsetFieldValue(String fieldName, String value) Set the string value of aFormFieldvoidsetTextFieldFont(String textFieldName, FontTypes font, int fontSize) Set the font of aTextField
- 
Constructor Details- 
FormManagerPlease get FormManager byPdfDocument.getForm()instead.- Parameters:
- internalPdfDocument- the internal pdf document
 
 
- 
- 
Method Details- 
flattenpublic final void flatten()Flattens a document (make all form fields non-editable).
- 
flattenFlattens a document (make all form fields non-editable).- Parameters:
- pageSelection- Selected page indexes. Default is all pages.
 
- 
getFieldsGet a collection of the user-editable form fields within a PDF document
- 
renameFieldRename aFormField- Parameters:
- currentFieldName- Current fully qualified field name
- newFieldName- New partial field name Please use a fully qualified field name for CurrentFieldName, and a partial field name for NewFieldName
 
- 
setFieldValueSet the string value of aFormField- Parameters:
- fieldName- Fully qualified field name
- value- New value
 
- 
setTextFieldFontSet the font of aTextField- Parameters:
- textFieldName- Fully qualified field name
- font- New font
- fontSize- New font size
 
 
-