|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.FDF
A class representing an FDF
object. "FDF" stands for "Forms Data Format",
and is Adobes format for submitting form data from a PDF to a server, and generating
a response.
Currently support in the PDF library is limited to completing a PDF documents Form
with the data in the FDF file, using the PDF.importFDF(org.faceless.pdf2.FDF)
method.
Here's a simple example showing how to complete a PDF form with an FDF and save the
completed PDF to an OutputStream
.
PDF pdf = new PDF(new PDFReader(new FileInputStream("blankform.pdf"))); FDF fdf = new FDF(new InputStream("data.fdf")); pdf.importFDF(fdf); pdf.render(outputstream);
PDF.importFDF(org.faceless.pdf2.FDF)
,
Form
Constructor Summary | |
FDF(InputStream fdfstream)
Create a new FDF from the specified InputStream. |
Method Summary | |
String |
getDocumentID(boolean primary)
Return the document ID that this FDF belongs to. |
String |
getFile()
Return the file associated with this FDF (the "F" entry), or null if not set. |
void |
setIgnoreErrors(boolean ignore)
Whether to ignore errors when importing this FDF. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FDF(InputStream fdfstream) throws IOException
fdfstream
- an InputStream containing the form data.Method Detail |
public String getFile()
null
if not set.
public String getDocumentID(boolean primary)
PDF.getDocumentID(boolean)
method,
but returns the ID of the document associated with this FDF (or
null if this is not specified)
primary
- whether to return the primary or secondary ID
null
if no ID is setpublic void setIgnoreErrors(boolean ignore)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |