Class RMPDFImageReader
java.lang.Object
com.inductiveautomation.rm.graphics.RMPDFImageReader
- All Implemented Interfaces:
- RMImageData.ImageReader
Provides info for an encapsulated PDF (a PDF used as an image).
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Returns the PDF file for the PDF image data (creating if necessary).voidpaint(RMImageData anImageData, Graphics2D g, double x, double y, double w, double h) Draw at maximum resolution.voidreadBasicInfo(RMImageData anImageData) Reads the basic info from PDF data.voidImageReader method - just a stub, since PDF images don't have image bytes.readImage(RMImageData anImageData) Reads the image.
- 
Constructor Details- 
RMPDFImageReaderCreates a new PDF image reader.
 
- 
- 
Method Details- 
canReadReturns whether PDF image reader can read files with given extension.
- 
canReadpublic static boolean canRead(byte[] data) Returns whether PDF image reader can read the file provided in the byte array.
- 
getPDFFileReturns the PDF file for the PDF image data (creating if necessary).
- 
readBasicInfoReads the basic info from PDF data.- Specified by:
- readBasicInfoin interface- RMImageData.ImageReader
 
- 
readImageReads the image.- Specified by:
- readImagein interface- RMImageData.ImageReader
 
- 
readBytesDecodedpublic void readBytesDecoded()ImageReader method - just a stub, since PDF images don't have image bytes.- Specified by:
- readBytesDecodedin interface- RMImageData.ImageReader
 
- 
paintDraw at maximum resolution. Page is scaled & translated to fit exactly in r.
 
-