Class Form_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Form_Api
The type Form api.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidflattenPdfFrom(InternalPdfDocument internalPdfDocument) Flattens a document (make the fields non-editable).static voidflattenPdfFrom(InternalPdfDocument internalPdfDocument, Iterable<Integer> pageIndexes) Flattens a document (make the fields non-editable).getFields(InternalPdfDocument internalPdfDocument) Get a collection of the user-editable form fields within a PDF documentstatic voidrenameField(InternalPdfDocument internalPdfDocument, String currentFieldName, String newFieldName) Rename aFormFieldstatic voidsetFieldValue(InternalPdfDocument internalPdfDocument, String fieldName, String value) Set the value of aFormFieldstatic voidsetTextFieldFont(InternalPdfDocument internalPdfDocument, String textFieldName, FontTypes font, int fontSize) Sets text field font.
- 
Constructor Details- 
Form_Apipublic Form_Api()
 
- 
- 
Method Details- 
getFieldsGet a collection of the user-editable form fields within a PDF document- Parameters:
- internalPdfDocument- the internal pdf document
- Returns:
- the fields
 
- 
renameFieldpublic static void renameField(InternalPdfDocument internalPdfDocument, String currentFieldName, String newFieldName) Rename aFormField- Parameters:
- internalPdfDocument- the internal pdf document
- 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
 
- 
setFieldValuepublic static void setFieldValue(InternalPdfDocument internalPdfDocument, String fieldName, String value) Set the value of aFormField- Parameters:
- internalPdfDocument- the internal pdf document
- fieldName- fully qualified field name
- value- new value
 
- 
setTextFieldFontpublic static void setTextFieldFont(InternalPdfDocument internalPdfDocument, String textFieldName, FontTypes font, int fontSize) Sets text field font.- Parameters:
- internalPdfDocument- the internal pdf document
- textFieldName- the text field name
- font- the font
- fontSize- the font size
 
- 
flattenPdfFromFlattens a document (make the fields non-editable).- Parameters:
- internalPdfDocument- the internal pdf document
 
- 
flattenPdfFrompublic static void flattenPdfFrom(InternalPdfDocument internalPdfDocument, Iterable<Integer> pageIndexes) Flattens a document (make the fields non-editable).- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndexes- page indexes to flatten (defaults to all pages)
 
 
-