|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents the AcroForm content in a PDF document. AcroForms are the form segment in interactive PDF documents. This class can be used to get information about the fields in the PDF document and to get references to the fields to set and get their values.
| Method Summary | |
void |
exportAsFDF(OutputStream outStream,
String pathToPDFFile,
boolean exportEmptyFields)
Exports AcroForm field data to an output stream in FDF format. |
void |
exportAsFDF(String fileName,
boolean exportEmptyFields)
Exports AcroForm field data to a file in FDF format. |
void |
exportAsXDP(OutputStream outStream,
String pdfReference,
boolean exportEmptyFields)
Exports XFA field data to an OutputStream. |
void |
exportAsXDP(String fileName,
boolean exportEmptyFields)
Exports XFA field data to a file in XDP format. |
void |
exportAsXFDF(OutputStream outStream,
String pathToPDFFile,
boolean exportEmptyFields)
Exports AcroForm field data to an output stream in XML format. |
void |
exportAsXFDF(String fileName,
boolean exportEmptyFields)
Exports AcroForm field data to a file in XFDF format. |
void |
exportAsXML(OutputStream outStream,
boolean useHierarchy,
boolean exportEmptyFields)
Export field values in a simple XML format. |
void |
exportAsXML(String fileName,
boolean useHierarchy,
boolean exportEmptyFields)
Export field values in a simple XML format. |
FormField |
getField(String fieldName)
Gets a field by name. |
Vector |
getFieldList()
Gets the list of fields in this AcroForm. |
Vector |
getSignatureFields()
Gets a list of signature fields, if any. |
void |
importFDF(InputStream inStream)
Imports AcroForm field data from an input stream in FDF format. |
void |
importFDF(String fileName)
Import Acroform field data from a file in FDF Format. |
void |
importXDP(InputStream inStream)
Imports XFA field data from an InputStream in XDP format. |
void |
importXDP(String fileName)
Imports XFA field data from a file in XDP format. |
void |
importXFDF(InputStream inStream)
Imports AcroForm field data from an input stream in XFDF format. |
void |
importXFDF(String fileName)
Imports Acroform fields data from a file in XFDF Format. |
void |
importXFDF(nanoxml.XMLElement topElement)
Import AcroForm field data from an xml element representing the top element of an fdf file. |
void |
resetFields()
Reset the form fields to their default value. |
| Method Detail |
public void exportAsXFDF(String fileName,
boolean exportEmptyFields)
throws PDFException
fileName - The name of the file to export the data to.exportEmptyFields - flag to indicate whether empty or null fields should be exported.
PDFException
public void exportAsFDF(String fileName,
boolean exportEmptyFields)
throws PDFException,
IOException
exportEmptyFields - flag to indicate whether empty or null fields should be exported.fileName - The name of the file to export the data to.
PDFException
IOException
public void exportAsXDP(String fileName,
boolean exportEmptyFields)
throws PDFException,
IOException
fileName - The name of the file to export the data to.exportEmptyFields - flag to indicate whether empty or null fields should be exported.
PDFException
IOException
public void exportAsXDP(OutputStream outStream,
String pdfReference,
boolean exportEmptyFields)
throws PDFException,
IOException
outStream - The output stream to write the data to.pdfReference - Reference to the PDF file. This is used to the pdf/href element in the XDP file. If null, the pdf/href element is not added to the output.exportEmptyFields - flag to indicate whether empty or null fields should be exported.
PDFException
IOException
public void exportAsXFDF(OutputStream outStream,
String pathToPDFFile,
boolean exportEmptyFields)
throws PDFException
outStream - The output stream to write the data to.pathToPDFFile - is the relative path from the fdf file to the pdf file name. This parameter can be left null.
This parameter is used to fill the pdf file name entry in the FDF file, the file entry will be set to pathToPDFFile + fileName
The file entry is used when you open an fdf file to be able to locate the corresponding pdf file.
Example of pathToPDFFile ../qoppa/mydirexportEmptyFields - flag to indicate whether empty or null fields should be exported.
IOException
PDFException
public void exportAsFDF(OutputStream outStream,
String pathToPDFFile,
boolean exportEmptyFields)
throws PDFException,
IOException
outStream - The output stream to write the data to.pathToPDFFile - is the relative path from the fdf file to the pdf file name. This parameter can be left null.
This parameter is used to fill the pdf file name entry in the FDF file, the file entry will be set to pathToPDFFile + fileName
The file entry is used when you open an fdf file to be able to locate the corresponding pdf file.exportEmptyFields - flag to indicate whether empty or null fields should be exported.
Example of pathToPDFFile ../qoppa/mydir
PDFException
IOExceptionpublic Vector getFieldList()
public Vector getSignatureFields()
public FormField getField(String fieldName)
fieldName - The name of a field in hierarchical form.
public void importFDF(String fileName)
throws PDFException
fileName - The name of the FDF file to import the data from.
PDFException
public void importFDF(InputStream inStream)
throws PDFException
inStream - The input stream in FDF format to read the data from.
PDFException
public void importXFDF(String fileName)
throws PDFException
fileName - The name of the XFDF file to import the data from.
PDFException
public void importXDP(String fileName)
throws PDFException,
IOException
fileName - The name of the XDP file to read.
PDFException, - IOException
PDFException
IOException
public void importXDP(InputStream inStream)
throws PDFException,
IOException
inStream - The input stream to read the XDP data from.
PDFException, - IOException
PDFException
IOException
public void importXFDF(nanoxml.XMLElement topElement)
throws PDFException
topElement - The xml element representing the XFDF file.
PDFException
public void importXFDF(InputStream inStream)
throws PDFException
inStream - The input stream in XFDF format to read the data from.
PDFException
public void resetFields()
throws PDFException
PDFException
public void exportAsXML(OutputStream outStream,
boolean useHierarchy,
boolean exportEmptyFields)
throws PDFException,
IOException
outStream - Output stream to write the XML to.useHierarchy - Preserve the hierarchy in the form in the XML output. If this parameter
is set to false, the output XML will have all the fields together in a single level below the root.
PDFException
IOException
public void exportAsXML(String fileName,
boolean useHierarchy,
boolean exportEmptyFields)
throws PDFException,
IOException
fileName - Name of the file to output the XML to.useHierarchy - Preserve the hierarchy in the form in the XML output. If this parameter
is set to false, the output XML will have all the fields together in a single level below the root.exportEmptyFields - flag to indicate whether empty or null fields should be exported.
PDFException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||