public class PDFFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_version |
java.util.Vector |
_xref |
Constructor and Description |
---|
PDFFile(byte[] bytes)
Creates a new PDF file for the PDF file bytes.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPageCache() |
void |
dumpAll(int max) |
ColorFactory |
getColorFactory() |
FontFactory |
getFontFactory() |
ImageFactory |
getImageFactory() |
PDFMarkupHandler |
getMarkupHandler() |
PDFPage |
getPage(int pageIndex)
Returns an individual PDF page for the given page index.
|
int |
getPageCount()
Returns the number of PDF pages in the PDF file.
|
PathFactory |
getPathFactory() |
java.lang.Object |
inheritedAttributeForKeyInPage(java.lang.String aKey,
java.util.Map aPage) |
static void |
main(java.lang.String[] args) |
java.lang.Object |
readCompressedEntry(int ostmNum,
int objIndex) |
static PDFFile |
readFile(java.io.File file)
Convenience method to load a new PDFFile from a java.io.File
|
void |
resetXRefTable()
Call this to clear the state of all xref table entries.
|
java.lang.Object |
resolveObject(java.lang.Object obj) |
void |
setColorFactory(ColorFactory c) |
void |
setFontFactory(FontFactory f)
Graphics object creation factories
|
void |
setImageFactory(ImageFactory f) |
void |
setMarkupHandler(PDFMarkupHandler h)
The callback handler
|
void |
setPathFactory(PathFactory p) |
void |
setStripsExtendedGStates(boolean flag) |
public PDFFile(byte[] bytes)
public PDFPage getPage(int pageIndex)
public void clearPageCache()
public int getPageCount()
public java.lang.Object inheritedAttributeForKeyInPage(java.lang.String aKey, java.util.Map aPage)
public java.lang.Object readCompressedEntry(int ostmNum, int objIndex)
public java.lang.Object resolveObject(java.lang.Object obj)
public void resetXRefTable()
public void setStripsExtendedGStates(boolean flag)
public void setFontFactory(FontFactory f)
public FontFactory getFontFactory()
public void setPathFactory(PathFactory p)
public PathFactory getPathFactory()
public void setColorFactory(ColorFactory c)
public ColorFactory getColorFactory()
public void setImageFactory(ImageFactory f)
public ImageFactory getImageFactory()
public void setMarkupHandler(PDFMarkupHandler h)
public PDFMarkupHandler getMarkupHandler()
public static PDFFile readFile(java.io.File file) throws java.io.IOException
java.io.IOException
public void dumpAll(int max) throws ParseException
ParseException
public static void main(java.lang.String[] args)