Package com.pixelmed.utils
Class PdfDecoder
- java.lang.Object
-
- com.pixelmed.utils.PdfDecoder
-
public class PdfDecoder extends java.lang.ObjectA class for to encapsulate JPedal PDF decoding capability if available at runtime without requiring it for compilation.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectpdfDecoderprotected java.lang.ClasspdfDecoderClass
-
Constructor Summary
Constructors Constructor Description PdfDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclosePdfFile()voiddecodePage(int page)java.awt.ComponentgetComponent()intgetDPI()java.awt.image.BufferedImagegetPageAsImage(int pageIndex)intgetPageCount()voidopenPdfFile(java.lang.String filename)voidsetBackground(java.awt.Color color)voidsetPageParameters(float scaling, int pageNumber)voiduseHiResScreenDisplay(boolean value)
-
-
-
Constructor Detail
-
PdfDecoder
public PdfDecoder() throws PdfException- Throws:
PdfException
-
-
Method Detail
-
useHiResScreenDisplay
public void useHiResScreenDisplay(boolean value) throws PdfException- Throws:
PdfException
-
openPdfFile
public void openPdfFile(java.lang.String filename) throws PdfException- Throws:
PdfException
-
closePdfFile
public void closePdfFile() throws PdfException- Throws:
PdfException
-
getPageCount
public int getPageCount() throws PdfException- Throws:
PdfException
-
getDPI
public int getDPI() throws PdfException- Throws:
PdfException
-
setPageParameters
public void setPageParameters(float scaling, int pageNumber) throws PdfException- Throws:
PdfException
-
decodePage
public void decodePage(int page) throws PdfException- Throws:
PdfException
-
setBackground
public void setBackground(java.awt.Color color) throws PdfException- Throws:
PdfException
-
getPageAsImage
public java.awt.image.BufferedImage getPageAsImage(int pageIndex) throws PdfException- Throws:
PdfException
-
getComponent
public java.awt.Component getComponent()
-
-