public final class Form_Api extends Object
| Constructor and Description |
|---|
Form_Api() |
| Modifier and Type | Method and Description |
|---|---|
static void |
flattenPdfFrom(InternalPdfDocument internalPdfDocument)
Flattens a document (make the fields non-editable).
|
static void |
flattenPdfFrom(InternalPdfDocument internalPdfDocument,
List<Integer> pageIndexes)
Flattens a document (make the fields non-editable).
|
static List<FormField> |
getFields(InternalPdfDocument internalPdfDocument)
Get a collection of the user-editable form fields within a PDF document
|
static String |
renameField(InternalPdfDocument internalPdfDocument,
String currentFieldName,
String newFieldName)
Rename a
FormField |
static void |
setFieldValue(InternalPdfDocument internalPdfDocument,
int annotationIndex,
String value)
Set the value of a
FormField |
static void |
setFormFieldIsReadOnly(InternalPdfDocument internalPdfDocument,
int annotationIndex,
boolean isReadOnly)
Sets text field font.
|
static void |
setTextFieldFont(InternalPdfDocument internalPdfDocument,
String textFieldName,
FontTypes font,
int fontSize)
Deprecated.
This method is deprecated and no longer has any effect.
Sets text field font.
|
public static List<FormField> getFields(InternalPdfDocument internalPdfDocument)
internalPdfDocument - the internal pdf documentpublic static String renameField(InternalPdfDocument internalPdfDocument, String currentFieldName, String newFieldName)
FormFieldinternalPdfDocument - 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 NewFieldNamepublic static void setFieldValue(InternalPdfDocument internalPdfDocument, int annotationIndex, String value)
FormFieldinternalPdfDocument - the internal pdf documentannotationIndex - fully qualified field annotationIndexvalue - new valuepublic static void setTextFieldFont(InternalPdfDocument internalPdfDocument, String textFieldName, FontTypes font, int fontSize)
internalPdfDocument - the internal pdf documenttextFieldName - the text field namefont - the fontfontSize - the font sizepublic static void flattenPdfFrom(InternalPdfDocument internalPdfDocument)
internalPdfDocument - the internal pdf documentpublic static void flattenPdfFrom(InternalPdfDocument internalPdfDocument, List<Integer> pageIndexes)
internalPdfDocument - the internal pdf documentpageIndexes - page indexes to flatten (defaults to all pages)public static void setFormFieldIsReadOnly(InternalPdfDocument internalPdfDocument, int annotationIndex, boolean isReadOnly)
internalPdfDocument - the internal pdf documentannotationIndex - the form field annotation IndexisReadOnly - the read only valueCopyright © 2022–2024 Iron Software. All rights reserved.