com.lowagie.text.pdf

Class PdfAcroForm


public class PdfAcroForm
extends PdfDictionary

Each PDF document can contain maximum 1 AcroForm.

Field Summary

private PdfArray
calculationOrder
This is an array containing the calculationorder of the fields.
private PdfArray
documentFields
This is an array containing DocumentFields.
private HashMap
fieldTemplates
This is a map containing FieldTemplates.
private int
sigFlags
Contains the signature flags.
private PdfWriter
writer

Fields inherited from class com.lowagie.text.pdf.PdfDictionary

CATALOG, FONT, OUTLINES, PAGE, PAGES, dictionaryType, hashMap

Fields inherited from class com.lowagie.text.pdf.PdfObject

ARRAY, BOOLEAN, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, bytes, indRef, type

Constructor Summary

PdfAcroForm(PdfWriter writer)
Creates new PdfAcroForm

Method Summary

void
addCalculationOrder(PdfFormField formField)
Adds an object to the calculationOrder.
PdfFormField
addCheckBox(String name, String value, boolean status, float llx, float lly, float urx, float ury)
PdfFormField
addComboBox(String name, String[] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addComboBox(String name, String[][] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
(package private) void
addDocumentField(PdfIndirectReference ref)
Adds documentFields.
(package private) void
addFieldTemplates(HashMap ft)
Adds fieldTemplates.
void
addFormField(PdfFormField formField)
Adds a formfield to the AcroForm.
PdfFormField
addHiddenField(String name, String value)
PdfFormField
addHtmlPostButton(String name, String caption, String value, String url, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addMap(String name, String value, String url, PdfContentByte appearance, float llx, float lly, float urx, float ury)
PdfFormField
addMultiLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addRadioButton(PdfFormField radiogroup, String value, float llx, float lly, float urx, float ury)
void
addRadioGroup(PdfFormField radiogroup)
PdfFormField
addResetButton(String name, String caption, String value, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addSelectList(String name, String[] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addSelectList(String name, String[][] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addSignature(String name, float llx, float lly, float urx, float ury)
PdfFormField
addSingleLinePasswordField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
addSingleLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
void
drawButton(PdfFormField button, String caption, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
void
drawCheckBoxAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury)
void
drawMultiLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
void
drawRadioAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury)
void
drawSignatureAppearences(PdfFormField field, float llx, float lly, float urx, float ury)
void
drawSingleLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
PdfFormField
getRadioGroup(String name, String defaultValue, boolean noToggleToOff)
(package private) boolean
isValid()
Checks if the Acroform is valid
void
setButtonParams(PdfFormField button, int characteristics, String name, String value)
void
setCheckBoxParams(PdfFormField field, String name, String value, boolean status, float llx, float lly, float urx, float ury)
void
setChoiceParams(PdfFormField field, String name, String defaultValue, float llx, float lly, float urx, float ury)
void
setSigFlags(int f)
Sets the signature flags.
void
setSignatureParams(PdfFormField field, String name, float llx, float lly, float urx, float ury)
void
setTextFieldParams(PdfFormField field, String text, String name, float llx, float lly, float urx, float ury)

Methods inherited from class com.lowagie.text.pdf.PdfDictionary

contains, get, getKeys, isCatalog, isDictionaryType, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putDel, putEx, remove, size, toPdf

Methods inherited from class com.lowagie.text.pdf.PdfObject