| java.lang.Object com.lowagie.text.pdf.PdfObject com.lowagie.text.pdf.PdfDictionary com.lowagie.text.pdf.PdfAcroForm
PdfAcroForm | public class PdfAcroForm extends PdfDictionary (Code) | | Each PDF document can contain maximum 1 AcroForm.
|
Method Summary | |
public void | addCalculationOrder(PdfFormField formField) Adds an object to the calculationOrder. | public PdfFormField | addCheckBox(String name, String value, boolean status, float llx, float lly, float urx, float ury) | public PdfFormField | addComboBox(String name, String[] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addComboBox(String name, String[][] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public void | addDocumentField(PdfIndirectReference ref) Adds documentFields. | public void | addFieldTemplates(HashMap ft) Adds fieldTemplates. | public void | addFormField(PdfFormField formField) Adds a formfield to the AcroForm. | public PdfFormField | addHiddenField(String name, String value) | public PdfFormField | addHtmlPostButton(String name, String caption, String value, String url, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addMap(String name, String value, String url, PdfContentByte appearance, float llx, float lly, float urx, float ury) | public PdfFormField | addMultiLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addRadioButton(PdfFormField radiogroup, String value, float llx, float lly, float urx, float ury) | public void | addRadioGroup(PdfFormField radiogroup) | public PdfFormField | addResetButton(String name, String caption, String value, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addSelectList(String name, String[] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addSelectList(String name, String[][] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addSignature(String name, float llx, float lly, float urx, float ury) | public PdfFormField | addSingleLinePasswordField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | addSingleLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public void | drawButton(PdfFormField button, String caption, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public void | drawCheckBoxAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury) | public void | drawMultiLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public void | drawRadioAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury) | public void | drawSignatureAppearences(PdfFormField field, float llx, float lly, float urx, float ury) | public void | drawSingleLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury) | public PdfFormField | getRadioGroup(String name, String defaultValue, boolean noToggleToOff) | public boolean | isValid() | public void | setButtonParams(PdfFormField button, int characteristics, String name, String value) | public void | setCheckBoxParams(PdfFormField field, String name, String value, boolean status, float llx, float lly, float urx, float ury) | public void | setChoiceParams(PdfFormField field, String name, String defaultValue, float llx, float lly, float urx, float ury) | public void | setNeedAppearances(boolean value) | public void | setSigFlags(int f) Sets the signature flags. | public void | setSignatureParams(PdfFormField field, String name, float llx, float lly, float urx, float ury) | public void | setTextFieldParams(PdfFormField field, String text, String name, float llx, float lly, float urx, float ury) |
PdfAcroForm | public PdfAcroForm(PdfWriter writer)(Code) | | Creates new PdfAcroForm
writer |
addCalculationOrder | public void addCalculationOrder(PdfFormField formField)(Code) | | Adds an object to the calculationOrder.
Parameters: formField - |
addCheckBox | public PdfFormField addCheckBox(String name, String value, boolean status, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: value - Parameters: status - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addComboBox | public PdfFormField addComboBox(String name, String[] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: options - Parameters: defaultValue - Parameters: editable - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addComboBox | public PdfFormField addComboBox(String name, String[][] options, String defaultValue, boolean editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: options - Parameters: defaultValue - Parameters: editable - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addFieldTemplates | public void addFieldTemplates(HashMap ft)(Code) | | Adds fieldTemplates.
Parameters: ft - |
addFormField | public void addFormField(PdfFormField formField)(Code) | | Adds a formfield to the AcroForm.
Parameters: formField - |
addHtmlPostButton | public PdfFormField addHtmlPostButton(String name, String caption, String value, String url, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: caption - Parameters: value - Parameters: url - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addMap | public PdfFormField addMap(String name, String value, String url, PdfContentByte appearance, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: value - Parameters: url - Parameters: appearance - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addMultiLineTextField | public PdfFormField addMultiLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: text - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addRadioButton | public PdfFormField addRadioButton(PdfFormField radiogroup, String value, float llx, float lly, float urx, float ury)(Code) | | Parameters: radiogroup - Parameters: value - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addRadioGroup | public void addRadioGroup(PdfFormField radiogroup)(Code) | | Parameters: radiogroup - |
addResetButton | public PdfFormField addResetButton(String name, String caption, String value, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: caption - Parameters: value - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addSelectList | public PdfFormField addSelectList(String name, String[] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: options - Parameters: defaultValue - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addSelectList | public PdfFormField addSelectList(String name, String[][] options, String defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: options - Parameters: defaultValue - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addSignature | public PdfFormField addSignature(String name, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
addSingleLinePasswordField | public PdfFormField addSingleLinePasswordField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: text - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - PdfFormField |
addSingleLineTextField | public PdfFormField addSingleLineTextField(String name, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: name - Parameters: text - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - a PdfFormField |
drawButton | public void drawButton(PdfFormField button, String caption, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: button - Parameters: caption - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
drawCheckBoxAppearences | public void drawCheckBoxAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: value - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
drawMultiLineOfText | public void drawMultiLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: text - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
drawRadioAppearences | public void drawRadioAppearences(PdfFormField field, String value, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: value - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
drawSignatureAppearences | public void drawSignatureAppearences(PdfFormField field, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
drawSingleLineOfText | public void drawSingleLineOfText(PdfFormField field, String text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: text - Parameters: font - Parameters: fontSize - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
getRadioGroup | public PdfFormField getRadioGroup(String name, String defaultValue, boolean noToggleToOff)(Code) | | Parameters: name - Parameters: defaultValue - Parameters: noToggleToOff - a PdfFormField |
isValid | public boolean isValid()(Code) | | Checks if the Acroform is valid
true if the Acroform is valid |
setButtonParams | public void setButtonParams(PdfFormField button, int characteristics, String name, String value)(Code) | | Parameters: button - Parameters: characteristics - Parameters: name - Parameters: value - |
setCheckBoxParams | public void setCheckBoxParams(PdfFormField field, String name, String value, boolean status, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: name - Parameters: value - Parameters: status - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
setChoiceParams | public void setChoiceParams(PdfFormField field, String name, String defaultValue, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: name - Parameters: defaultValue - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
setNeedAppearances | public void setNeedAppearances(boolean value)(Code) | | |
setSigFlags | public void setSigFlags(int f)(Code) | | Sets the signature flags.
Parameters: f - |
setSignatureParams | public void setSignatureParams(PdfFormField field, String name, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: name - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
setTextFieldParams | public void setTextFieldParams(PdfFormField field, String text, String name, float llx, float lly, float urx, float ury)(Code) | | Parameters: field - Parameters: text - Parameters: name - Parameters: llx - Parameters: lly - Parameters: urx - Parameters: ury - |
|
|