public class PdfDecoder extends Object
A class for to encapsulate JPedal PDF decoding capability if available at runtime without requiring it for compilation.
| Modifier and Type | Field and Description |
|---|---|
protected Object |
pdfDecoder |
protected Class |
pdfDecoderClass |
| Constructor and Description |
|---|
PdfDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
closePdfFile() |
void |
decodePage(int page) |
Component |
getComponent() |
int |
getDPI() |
BufferedImage |
getPageAsImage(int pageIndex) |
int |
getPageCount() |
void |
openPdfFile(String filename) |
void |
setBackground(Color color) |
void |
setPageParameters(float scaling,
int pageNumber) |
void |
useHiResScreenDisplay(boolean value) |
public PdfDecoder()
throws PdfException
PdfExceptionpublic void closePdfFile()
throws PdfException
PdfExceptionpublic void decodePage(int page)
throws PdfException
PdfExceptionpublic Component getComponent()
public int getDPI()
throws PdfException
PdfExceptionpublic BufferedImage getPageAsImage(int pageIndex) throws PdfException
PdfExceptionpublic int getPageCount()
throws PdfException
PdfExceptionpublic void openPdfFile(String filename) throws PdfException
PdfExceptionpublic void setBackground(Color color) throws PdfException
PdfExceptionpublic void setPageParameters(float scaling,
int pageNumber)
throws PdfException
PdfExceptionpublic void useHiResScreenDisplay(boolean value)
throws PdfException
PdfException