Class Form_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Form_Api
The type Form api.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
flattenPdfFrom
(InternalPdfDocument internalPdfDocument) Flattens a document (make the fields non-editable).static void
flattenPdfFrom
(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 void
renameField
(InternalPdfDocument internalPdfDocument, String currentFieldName, String newFieldName) Rename aFormField
static void
setFieldValue
(InternalPdfDocument internalPdfDocument, String fieldName, String value) Set the value of aFormField
static void
setTextFieldFont
(InternalPdfDocument internalPdfDocument, String textFieldName, FontTypes font, int fontSize) Sets text field font.
-
Constructor Details
-
Form_Api
public Form_Api()
-
-
Method Details
-
getFields
Get a collection of the user-editable form fields within a PDF document- Parameters:
internalPdfDocument
- the internal pdf document- Returns:
- the fields
-
renameField
public static void renameField(InternalPdfDocument internalPdfDocument, String currentFieldName, String newFieldName) Rename aFormField
- Parameters:
internalPdfDocument
- the internal pdf documentcurrentFieldName
- current fully qualified field namenewFieldName
- new partial field name Please use a fully qualified field name for CurrentFieldName, and a partial field name for NewFieldName
-
setFieldValue
public static void setFieldValue(InternalPdfDocument internalPdfDocument, String fieldName, String value) Set the value of aFormField
- Parameters:
internalPdfDocument
- the internal pdf documentfieldName
- fully qualified field namevalue
- new value
-
setTextFieldFont
public static void setTextFieldFont(InternalPdfDocument internalPdfDocument, String textFieldName, FontTypes font, int fontSize) Sets text field font.- Parameters:
internalPdfDocument
- the internal pdf documenttextFieldName
- the text field namefont
- the fontfontSize
- the font size
-
flattenPdfFrom
Flattens a document (make the fields non-editable).- Parameters:
internalPdfDocument
- the internal pdf document
-
flattenPdfFrom
public static void flattenPdfFrom(InternalPdfDocument internalPdfDocument, Iterable<Integer> pageIndexes) Flattens a document (make the fields non-editable).- Parameters:
internalPdfDocument
- the internal pdf documentpageIndexes
- page indexes to flatten (defaults to all pages)
-