|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.etymon.pjx.PdfReader
Reads a PDF document. Most applications do not need to access
methods in this class but should instead go through PdfManager. This class is synchronized.
| Constructor Summary | |
PdfReader(PdfInput pdfInput)
Creates a reader for a PDF document to be read from a PdfInput source. |
|
| Method Summary | |
void |
close()
Closes the PDF document and releases any system resources associated with it. |
PdfInput |
getInput()
Returns the PdfInput instance associated with
this document. |
java.lang.String |
readHeader()
Reads the header of the PDF document. |
PdfObject |
readObject(long start,
long end,
boolean indirect,
XrefTable xt)
Reads a PDF object from the document. |
long |
readStartxref()
Reads the startxref value from the PDF document. |
XrefTable |
readXrefTable(long startxref)
Reads and compiles all cross-reference tables and trailer dictionaries from the PDF document beginning at a specified position. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdfReader(PdfInput pdfInput)
PdfInput source.
pdfInput - the source to read the PDF document from.| Method Detail |
public PdfInput getInput()
PdfInput instance associated with
this document.
public void close()
throws java.io.IOException
java.io.IOException
public java.lang.String readHeader()
throws java.io.IOException,
PdfException
java.io.IOException
PdfException
public PdfObject readObject(long start,
long end,
boolean indirect,
XrefTable xt)
throws java.io.IOException,
PdfFormatException
PdfReaderFilter. It is
possible for this method to return null if the
filtering method discards all objects.
start - the offset where the object starts.end - the offset where the object ends.indirect - true if the object is preceded by the object
number, generation, and "obj".xt - the PDF document's cross-reference table.
java.io.IOException
PdfFormatException
public long readStartxref()
throws java.io.IOException,
PdfFormatException
java.io.IOException
PdfFormatException
public XrefTable readXrefTable(long startxref)
throws java.io.IOException,
PdfFormatException
PdfReaderFilter.
startxref - the xref start position.
java.io.IOException
PdfFormatException
|
Copyright © 1998-2004 Etymon Systems, Inc. The PDF data structures, operators, and specification are |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||