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 booleancanRead(byte[] data) Returns whether PDF image reader can read the file provided in the byte array.static booleanReturns 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).voidReads the basic info from PDF data.voidImageReader 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:
readBasicInfoin interfaceRMImageData.ImageReader
-
readBytesDecoded
public void readBytesDecoded()ImageReader method - just a stub, since PDF images don't have image bytes.- Specified by:
readBytesDecodedin interfaceRMImageData.ImageReader
-
getPDFFile
Returns a PDF file for the PDF image data (creating if necessary). -
getImageShape
-
getImage
-