public class PdfAcroForm extends PdfDictionary
| Constructor and Description | 
|---|
PdfAcroForm(PdfWriter writer) 
            
              Creates new PdfAcroForm 
               |  
          
| Modifier and Type | Method and Description | 
|---|---|
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)  |  
          
void |  
           addDocumentField(PdfIndirectReference ref) 
            
              Adds documentFields. 
               |  
          
void |  
           addFieldTemplates(HashSet<PdfTemplate> 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)  |  
          
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 |  
           setNeedAppearances(boolean value)  |  
          
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)  |  
          
void |  
           toPdf(PdfWriter writer, OutputStream os) 
            
              Writes the PDF representation of this   PdfDictionary as an array of byte to the given OutputStream. 
             |  
          
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toStringcanBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typepublic PdfAcroForm(PdfWriter writer)
writer - 
           public void setNeedAppearances(boolean value)
public void addFieldTemplates(HashSet<PdfTemplate> ft)
ft - 
           public void addDocumentField(PdfIndirectReference ref)
ref - 
           public boolean isValid()
public void addCalculationOrder(PdfFormField formField)
formField - 
           public void setSigFlags(int f)
f - 
           public void addFormField(PdfFormField formField)
formField - 
           public PdfFormField addHtmlPostButton(String name, String caption, String value, String url, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           caption - 
           value - 
           url - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addResetButton(String name, String caption, String value, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           caption - 
           value - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addMap(String name, String value, String url, PdfContentByte appearance, float llx, float lly, float urx, float ury)
name - 
           value - 
           url - 
           appearance - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void setButtonParams(PdfFormField button, int characteristics, String name, String value)
button - 
           characteristics - 
           name - 
           value - 
           public void drawButton(PdfFormField button, String caption, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
button - 
           caption - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addHiddenField(String name, String value)
name - 
           value - 
           public PdfFormField addSingleLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           text - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addMultiLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           text - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addSingleLinePasswordField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           text - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void setTextFieldParams(PdfFormField field, String text, String name, float llx, float lly, float urx, float ury)
field - 
           text - 
           name - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void drawSingleLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
field - 
           text - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void drawMultiLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
field - 
           text - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addCheckBox(String name, String value, boolean status, float llx, float lly, float urx, float ury)
name - 
           value - 
           status - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void setCheckBoxParams(PdfFormField field, String name, String value, boolean status, float llx, float lly, float urx, float ury)
field - 
           name - 
           value - 
           status - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void drawCheckBoxAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury)
field - 
           value - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField getRadioGroup(String name, String defaultValue, boolean noToggleToOff)
name - 
           defaultValue - 
           noToggleToOff - 
           public void addRadioGroup(PdfFormField radiogroup)
radiogroup - 
           public PdfFormField addRadioButton(PdfFormField radiogroup, String value, float llx, float lly, float urx, float ury)
radiogroup - 
           value - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void drawRadioAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury)
field - 
           value - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addSelectList(String name, String[] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           options - 
           defaultValue - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addSelectList(String name, String[][] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           options - 
           defaultValue - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addComboBox(String name, String[] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           options - 
           defaultValue - 
           editable - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addComboBox(String name, String[][] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
name - 
           options - 
           defaultValue - 
           editable - 
           font - 
           fontSize - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void setChoiceParams(PdfFormField field, String name, String defaultValue, float llx, float lly, float urx, float ury)
field - 
           name - 
           defaultValue - 
           llx - 
           lly - 
           urx - 
           ury - 
           public PdfFormField addSignature(String name, float llx, float lly, float urx, float ury)
name - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void setSignatureParams(PdfFormField field, String name, float llx, float lly, float urx, float ury)
field - 
           name - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void drawSignatureAppearences(PdfFormField field, float llx, float lly, float urx, float ury)
field - 
           llx - 
           lly - 
           urx - 
           ury - 
           public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfDictionary 
          PdfDictionary as an array of byte to the given OutputStream. 
          toPdf in class PdfDictionary 
           writer - for backwards compatibility 
           os - the OutputStream to write the bytes to. 
           IOException 
           Copyright © 1998–2019. All rights reserved.