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,
Iterable<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 void |
renameField(InternalPdfDocument internalPdfDocument,
String currentFieldName,
String newFieldName)
Rename a
FormField |
static void |
setFieldValue(InternalPdfDocument internalPdfDocument,
String fieldName,
String value)
Set the value of a
FormField |
static void |
setFormFieldIsReadOnly(InternalPdfDocument internalPdfDocument,
String formFieldName,
boolean isReadOnly)
Sets text field font.
|
static void |
setTextFieldFont(InternalPdfDocument internalPdfDocument,
String textFieldName,
FontTypes font,
int fontSize)
Sets text field font.
|
public static List<FormField> getFields(InternalPdfDocument internalPdfDocument)
internalPdfDocument
- the internal pdf documentpublic static void renameField(InternalPdfDocument internalPdfDocument, String currentFieldName, String newFieldName)
FormField
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 NewFieldNamepublic static void setFieldValue(InternalPdfDocument internalPdfDocument, String fieldName, String value)
FormField
internalPdfDocument
- the internal pdf documentfieldName
- fully qualified field namevalue
- 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, Iterable<Integer> pageIndexes)
internalPdfDocument
- the internal pdf documentpageIndexes
- page indexes to flatten (defaults to all pages)public static void setFormFieldIsReadOnly(InternalPdfDocument internalPdfDocument, String formFieldName, boolean isReadOnly)
internalPdfDocument
- the internal pdf documentformFieldName
- the form field nameisReadOnly
- the read only valueCopyright © 2022–2023 Iron Software. All rights reserved.