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
PdfException
public void closePdfFile() throws PdfException
PdfException
public void decodePage(int page) throws PdfException
PdfException
public Component getComponent()
public int getDPI() throws PdfException
PdfException
public BufferedImage getPageAsImage(int pageIndex) throws PdfException
PdfException
public int getPageCount() throws PdfException
PdfException
public void openPdfFile(String filename) throws PdfException
PdfException
public void setBackground(Color color) throws PdfException
PdfException
public void setPageParameters(float scaling, int pageNumber) throws PdfException
PdfException
public void useHiResScreenDisplay(boolean value) throws PdfException
PdfException