Class RMPDFImageReader
- java.lang.Object
- 
- com.inductiveautomation.rm.graphics.RMPDFImageReader
 
- 
- All Implemented Interfaces:
- RMImageData.ImageReader
 
 public class RMPDFImageReader extends java.lang.Object implements RMImageData.ImageReader Provides info for an encapsulated PDF (a PDF used as an image).
- 
- 
Constructor SummaryConstructors Constructor Description RMPDFImageReader(RMImageData anImageData)Creates a new PDF image reader.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancanRead(byte[] data)Returns whether PDF image reader can read the file provided in the byte array.static booleancanRead(java.lang.String anExt)Returns whether PDF image reader can read files with given extension.PDFFilegetPDFFile()Returns the PDF file for the PDF image data (creating if necessary).voidpaint(RMImageData anImageData, java.awt.Graphics2D g, double x, double y, double w, double h)Draw at maximum resolution.voidreadBasicInfo(RMImageData anImageData)Reads the basic info from PDF data.voidreadBytesDecoded()ImageReader method - just a stub, since PDF images don't have image bytes.java.awt.image.BufferedImagereadImage(RMImageData anImageData)Reads the image.
 
- 
- 
- 
Constructor Detail- 
RMPDFImageReaderpublic RMPDFImageReader(RMImageData anImageData) Creates a new PDF image reader.
 
- 
 - 
Method Detail- 
canReadpublic static boolean canRead(java.lang.String anExt) Returns 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.
 - 
getPDFFilepublic PDFFile getPDFFile() Returns the PDF file for the PDF image data (creating if necessary).
 - 
readBasicInfopublic void readBasicInfo(RMImageData anImageData) Reads the basic info from PDF data.- Specified by:
- readBasicInfoin interface- RMImageData.ImageReader
 
 - 
readImagepublic java.awt.image.BufferedImage readImage(RMImageData anImageData) Reads 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
 
 - 
paintpublic void paint(RMImageData anImageData, java.awt.Graphics2D g, double x, double y, double w, double h) Draw at maximum resolution. Page is scaled & translated to fit exactly in r.
 
- 
 
-