|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.PdfReader
com.itextpdf.text.pdf.FdfReader
public class FdfReader
Reads an FDF form and makes the fields available
Field Summary | |
---|---|
protected static Counter |
COUNTER
|
Fields inherited from class com.itextpdf.text.pdf.PdfReader |
---|
acroForm, acroFormParsed, catalog, certificate, certificateKey, certificateKeyProvider, consolidateNamedDestinations, decrypt, encrypted, eofPos, freeXref, lastXref, newXrefType, objStmMark, objStmToOffset, pageRefs, password, pdfVersion, pValue, rebuilt, remoteToLocalNamedDestinations, rValue, sharedStreams, strings, tampered, tokens, trailer, unethicalreading, xref, xrefObj |
Constructor Summary | |
---|---|
FdfReader(byte[] pdfIn)
Reads an FDF form. |
|
FdfReader(InputStream is)
Reads an FDF form. |
|
FdfReader(String filename)
Reads an FDF form. |
|
FdfReader(URL url)
Reads an FDF form. |
Method Summary | |
---|---|
byte[] |
getAttachedFile(String name)
Gets a byte[] containing a file that is embedded in the FDF. |
protected Counter |
getCounter()
|
PdfDictionary |
getField(String name)
Gets the field dictionary. |
HashMap<String,PdfDictionary> |
getFields()
Gets all the fields. |
String |
getFieldValue(String name)
Gets the field value or null if the field does not
exist or has no value defined. |
String |
getFileSpec()
Gets the PDF file specification contained in the FDF. |
protected void |
kidNode(PdfDictionary merged,
String name)
|
protected void |
readFields()
|
protected void |
readPdf()
Parses the entire PDF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Counter COUNTER
Constructor Detail |
---|
public FdfReader(String filename) throws IOException
filename
- the file name of the form
IOException
- on errorpublic FdfReader(byte[] pdfIn) throws IOException
pdfIn
- the byte array with the form
IOException
- on errorpublic FdfReader(URL url) throws IOException
url
- the URL of the document
IOException
- on errorpublic FdfReader(InputStream is) throws IOException
is
- the InputStream
containing the document. The stream is read to the
end but is not closed
IOException
- on errorMethod Detail |
---|
protected Counter getCounter()
getCounter
in class PdfReader
protected void readPdf() throws IOException
PdfReader
readPdf
in class PdfReader
IOException
protected void kidNode(PdfDictionary merged, String name)
protected void readFields()
public HashMap<String,PdfDictionary> getFields()
PdfDictionary
with the field content.
public PdfDictionary getField(String name)
name
- the fully qualified field name
public byte[] getAttachedFile(String name) throws IOException
name
- the fully qualified field name
IOException
public String getFieldValue(String name)
null
if the field does not
exist or has no value defined.
name
- the fully qualified field name
null
public String getFileSpec()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |