public final class PdfFormCreator extends Object
PdfFormFactory is used.| Modifier and Type | Method and Description |
|---|---|
static PdfButtonFormField |
createButtonFormField(PdfDictionary dictionary)
Creates a button form field as a wrapper object around a
PdfDictionary using provided factory. |
static PdfButtonFormField |
createButtonFormField(PdfDocument document)
Create a minimal, empty
PdfButtonFormField using provided factory. |
static PdfButtonFormField |
createButtonFormField(PdfWidgetAnnotation widget,
PdfDocument document)
Creates a button form field as a parent of a
PdfWidgetAnnotation using provided factory. |
static PdfChoiceFormField |
createChoiceFormField(PdfDictionary dictionary)
Creates a choice form field as a wrapper object around a
PdfDictionary using provided factory. |
static PdfChoiceFormField |
createChoiceFormField(PdfDocument document)
Create a minimal, empty
PdfChoiceFormField using provided factory. |
static PdfChoiceFormField |
createChoiceFormField(PdfWidgetAnnotation widget,
PdfDocument document)
Creates a choice form field as a parent of a
PdfWidgetAnnotation using provided factory. |
static PdfFormAnnotation |
createFormAnnotation(PdfDictionary dictionary)
Creates a form field annotation as a wrapper object around a
PdfDictionary using provided factory. |
static PdfFormAnnotation |
createFormAnnotation(PdfWidgetAnnotation widget,
PdfDocument document)
Creates a form field annotation as a wrapper of a
PdfWidgetAnnotation using provided factory. |
static PdfFormField |
createFormField(PdfDictionary dictionary)
Creates a form field as a wrapper object around a
PdfDictionary using provided factory. |
static PdfFormField |
createFormField(PdfDocument document)
Create a minimal, empty
PdfFormField using provided factory. |
static PdfFormField |
createFormField(PdfWidgetAnnotation widget,
PdfDocument document)
Creates a form field as a parent of a
PdfWidgetAnnotation using provided factory. |
static PdfSignatureFormField |
createSignatureFormField(PdfDictionary dictionary)
Creates a signature form field as a wrapper object around a
PdfDictionary using provided factory. |
static PdfSignatureFormField |
createSignatureFormField(PdfDocument document)
Create a minimal, empty
PdfSignatureFormField using provided factory. |
static PdfSignatureFormField |
createSignatureFormField(PdfWidgetAnnotation widget,
PdfDocument document)
Creates a signature form field as a parent of a
PdfWidgetAnnotation using provided factory. |
static PdfTextFormField |
createTextFormField(PdfDictionary dictionary)
Creates a text form field as a wrapper object around a
PdfDictionary using provided factory. |
static PdfTextFormField |
createTextFormField(PdfDocument document)
Create a minimal, empty
PdfTextFormField using provided factory. |
static PdfTextFormField |
createTextFormField(PdfWidgetAnnotation widget,
PdfDocument document)
Creates a text form field as a parent of a
PdfWidgetAnnotation using provided factory. |
static PdfAcroForm |
getAcroForm(PdfDocument document,
boolean createIfNotExist)
Retrieves AcroForm from the document using provided factory.
|
static void |
setFactory(PdfFormFactory factory)
Set
PdfFormFactory to be used for form related instances creation. |
public static void setFactory(PdfFormFactory factory)
PdfFormFactory to be used for form related instances creation.factory - PdfFormFactory to setpublic static PdfFormField createFormField(PdfDocument document)
PdfFormField using provided factory.document - The PdfDocument instance.PdfFormFieldpublic static PdfFormField createFormField(PdfDictionary dictionary)
PdfDictionary using provided factory.
This PdfDictionary must be an indirect object.dictionary - the dictionary to be wrapped, must have an indirect reference.PdfFormFieldpublic static PdfFormField createFormField(PdfWidgetAnnotation widget, PdfDocument document)
PdfWidgetAnnotation using provided factory.widget - The widget which will be a kid of the PdfFormField.document - The PdfDocument instance.PdfFormFieldpublic static PdfTextFormField createTextFormField(PdfDocument document)
PdfTextFormField using provided factory.document - The PdfDocument instance.PdfTextFormFieldpublic static PdfTextFormField createTextFormField(PdfDictionary dictionary)
PdfDictionary using provided factory.
This PdfDictionary must be an indirect object.dictionary - the dictionary to be wrapped, must have an indirect reference.PdfTextFormFieldpublic static PdfTextFormField createTextFormField(PdfWidgetAnnotation widget, PdfDocument document)
PdfWidgetAnnotation using provided factory.widget - The widget which will be a kid of the PdfTextFormField.document - The PdfDocument instance.PdfTextFormFieldpublic static PdfButtonFormField createButtonFormField(PdfDocument document)
PdfButtonFormField using provided factory.document - The PdfDocument instance.PdfButtonFormFieldpublic static PdfButtonFormField createButtonFormField(PdfDictionary dictionary)
PdfDictionary using provided factory.
This PdfDictionary must be an indirect object.dictionary - the dictionary to be wrapped, must have an indirect reference.PdfButtonFormFieldpublic static PdfButtonFormField createButtonFormField(PdfWidgetAnnotation widget, PdfDocument document)
PdfWidgetAnnotation using provided factory.widget - The widget which will be a kid of the PdfButtonFormField.document - The PdfDocument instance.PdfButtonFormFieldpublic static PdfChoiceFormField createChoiceFormField(PdfDocument document)
PdfChoiceFormField using provided factory.document - The PdfDocument instance.PdfChoiceFormFieldpublic static PdfChoiceFormField createChoiceFormField(PdfDictionary dictionary)
PdfDictionary using provided factory.
This PdfDictionary must be an indirect object.dictionary - the dictionary to be wrapped, must have an indirect reference.PdfChoiceFormFieldpublic static PdfChoiceFormField createChoiceFormField(PdfWidgetAnnotation widget, PdfDocument document)
PdfWidgetAnnotation using provided factory.widget - The widget which will be a kid of the PdfChoiceFormField.document - The PdfDocument instance.PdfChoiceFormFieldpublic static PdfSignatureFormField createSignatureFormField(PdfDocument document)
PdfSignatureFormField using provided factory.document - The PdfDocument instance.PdfSignatureFormFieldpublic static PdfSignatureFormField createSignatureFormField(PdfDictionary dictionary)
PdfDictionary using provided factory.
This PdfDictionary must be an indirect object.dictionary - the dictionary to be wrapped, must have an indirect reference.PdfSignatureFormFieldpublic static PdfSignatureFormField createSignatureFormField(PdfWidgetAnnotation widget, PdfDocument document)
PdfWidgetAnnotation using provided factory.widget - The widget which will be a kid of the PdfSignatureFormField.document - The PdfDocument instance.PdfSignatureFormFieldpublic static PdfFormAnnotation createFormAnnotation(PdfDictionary dictionary)
PdfDictionary using provided factory.
This PdfDictionary must be an indirect object.dictionary - the dictionary to be wrapped, must have an indirect reference.PdfFormAnnotationpublic static PdfFormAnnotation createFormAnnotation(PdfWidgetAnnotation widget, PdfDocument document)
PdfWidgetAnnotation using provided factory.widget - The widget which will be a kid of the PdfFormFielddocument - The PdfDocument instance.PdfFormAnnotationpublic static PdfAcroForm getAcroForm(PdfDocument document, boolean createIfNotExist)
document - the document to retrieve the PdfAcroForm fromcreateIfNotExist - when true, this method will create a PdfAcroForm
if none exists for this documentdocument's AcroForm, or a new one provided that createIfNotExist
parameter is true, otherwise null.Copyright © 1998–2024 Apryse Group NV. All rights reserved.