Package com.reportmill.graphics
Class RMPDFImageReader
java.lang.Object
com.reportmill.graphics.RMPDFImageReader
- All Implemented Interfaces:
RMImageData.ImageReader
Provides info for an ecapsulated PDF (a PDF used as an image).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canRead
(byte[] data) Returns whether PDF image reader can read the file provided in the byte array.static boolean
Returns whether PDF image reader can read files with given extension.getImage
(int page) getImageShape
(int page) Returns a PDF file for the PDF image data (creating if necessary).void
Reads the basic info from PDF data.void
ImageReader method - just a stub, since PDF images don't have image bytes.
-
Field Details
-
_pdfFile
-
-
Constructor Details
-
RMPDFImageReader
Creates a new PDF image reader.
-
-
Method Details
-
canRead
Returns whether PDF image reader can read files with given extension. -
canRead
public static boolean canRead(byte[] data) Returns whether PDF image reader can read the file provided in the byte array. -
readBasicInfo
public void readBasicInfo()Reads the basic info from PDF data.- Specified by:
readBasicInfo
in interfaceRMImageData.ImageReader
-
readBytesDecoded
public void readBytesDecoded()ImageReader method - just a stub, since PDF images don't have image bytes.- Specified by:
readBytesDecoded
in interfaceRMImageData.ImageReader
-
getPDFFile
Returns a PDF file for the PDF image data (creating if necessary). -
getImageShape
-
getImage
-