Class ExtractedImageMetadata


  • public class ExtractedImageMetadata
    extends java.lang.Object
    The metadata is taken from the PDF stream's dictionary, not from the image header inside the stream. In a well-formed PDF file, the image metadata encoded in the stream dictionary should be the same as the one encoded in the image header. This, however, is neither required nor checked and may not be true for an ill-formed PDF.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtractedImageMetadata​(int height, int width)
      Constructs ExtractedImageMetadata with the given params.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Getter for height field.
      int getWidth()
      Getter for width field.
      • Methods inherited from class java.lang.Object

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

      • ExtractedImageMetadata

        public ExtractedImageMetadata​(int height,
                                      int width)
        Constructs ExtractedImageMetadata with the given params.
        Parameters:
        height - Height of the image in pixels.
        width - Width of the image in pixels.
    • Method Detail

      • getHeight

        public int getHeight()
        Getter for height field. See constructor documentation for more information about the field.
        Returns:
        height
      • getWidth

        public int getWidth()
        Getter for width field. See constructor documentation for more information about the field.
        Returns:
        width