public class PdfDecoder
extends java.lang.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 java.lang.Object |
pdfDecoder |
protected java.lang.Class |
pdfDecoderClass |
Constructor and Description |
---|
PdfDecoder() |
Modifier and Type | Method and Description |
---|---|
void |
closePdfFile() |
void |
decodePage(int page) |
java.awt.Component |
getComponent() |
int |
getDPI() |
java.awt.image.BufferedImage |
getPageAsImage(int pageIndex) |
int |
getPageCount() |
void |
openPdfFile(java.lang.String filename) |
void |
setBackground(java.awt.Color color) |
void |
setPageParameters(float scaling,
int pageNumber) |
void |
useHiResScreenDisplay(boolean value) |
protected java.lang.Object pdfDecoder
protected java.lang.Class pdfDecoderClass
public PdfDecoder() throws PdfException
PdfException
public void closePdfFile() throws PdfException
PdfException
public void decodePage(int page) throws PdfException
PdfException
public java.awt.Component getComponent()
public int getDPI() throws PdfException
PdfException
public java.awt.image.BufferedImage getPageAsImage(int pageIndex) throws PdfException
PdfException
public int getPageCount() throws PdfException
PdfException
public void openPdfFile(java.lang.String filename) throws PdfException
PdfException
public void setBackground(java.awt.Color color) throws PdfException
PdfException
public void setPageParameters(float scaling, int pageNumber) throws PdfException
PdfException
public void useHiResScreenDisplay(boolean value) throws PdfException
PdfException