Class RMPDFImageReader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      PDFFile _pdfFile  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      java.awt.Image getImage​(int page)  
      RMShape getImageShape​(int page)  
      PDFFile getPDFFile()
      Returns a PDF file for the PDF image data (creating if necessary).
      void readBasicInfo()
      Reads the basic info from PDF data.
      void readBytesDecoded()
      ImageReader method - just a stub, since PDF images don't have image bytes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _pdfFile

        public PDFFile _pdfFile
    • Constructor Detail

      • RMPDFImageReader

        public RMPDFImageReader​(RMImageData anImageData)
        Creates a new PDF image reader.
    • Method Detail

      • canRead

        public static boolean canRead​(java.lang.String anExt)
        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.
      • readBytesDecoded

        public void readBytesDecoded()
        ImageReader method - just a stub, since PDF images don't have image bytes.
        Specified by:
        readBytesDecoded in interface RMImageData.ImageReader
      • getPDFFile

        public PDFFile getPDFFile()
        Returns a PDF file for the PDF image data (creating if necessary).
      • getImageShape

        public RMShape getImageShape​(int page)
      • getImage

        public java.awt.Image getImage​(int page)