public class RMPDFImageReader extends java.lang.Object implements RMImageData.ImageReader
Constructor and Description |
---|
RMPDFImageReader(RMImageData anImageData)
Creates a new PDF image reader.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canRead(byte[] data)
Returns whether PDF image reader can read the file provided in the byte array.
|
static boolean |
canRead(java.lang.String anExt)
Returns whether PDF image reader can read files with given extension.
|
PDFFile |
getPDFFile()
Returns the PDF file for the PDF image data (creating if necessary).
|
void |
paint(RMImageData anImageData,
java.awt.Graphics2D g,
double x,
double y,
double w,
double h)
Draw at maximum resolution.
|
void |
readBasicInfo(RMImageData anImageData)
Reads the basic info from PDF data.
|
void |
readBytesDecoded()
ImageReader method - just a stub, since PDF images don't have image bytes.
|
java.awt.image.BufferedImage |
readImage(RMImageData anImageData)
Reads the image.
|
public RMPDFImageReader(RMImageData anImageData)
public static boolean canRead(java.lang.String anExt)
public static boolean canRead(byte[] data)
public PDFFile getPDFFile()
public void readBasicInfo(RMImageData anImageData)
readBasicInfo
in interface RMImageData.ImageReader
public java.awt.image.BufferedImage readImage(RMImageData anImageData)
readImage
in interface RMImageData.ImageReader
public void readBytesDecoded()
readBytesDecoded
in interface RMImageData.ImageReader
public void paint(RMImageData anImageData, java.awt.Graphics2D g, double x, double y, double w, double h)