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