Class MetadataImage


  • public class MetadataImage
    extends Object
    Defines an image resource of a PDF document.
    • Constructor Detail

      • MetadataImage

        public MetadataImage()
    • Method Detail

      • getBitsPerComponent

        @Nullable
        public @Nullable Integer getBitsPerComponent()
        The number of bits used to encode one color component. minimum: 0
        Returns:
        bitsPerComponent
      • setBitsPerComponent

        public void setBitsPerComponent​(Integer bitsPerComponent)
      • getHeight

        @Nullable
        public @Nullable Integer getHeight()
        The height of the image in points.
        Returns:
        height
      • setHeight

        public void setHeight​(Integer height)
      • getObjectKey

        @Nullable
        public @Nullable String getObjectKey()
        The object ID of the image resource definition. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.
        Returns:
        objectKey
      • setObjectKey

        public void setObjectKey​(String objectKey)
      • getPage

        @Nullable
        public @Nullable Integer getPage()
        The number of the page containing the image resource. minimum: 0
        Returns:
        page
      • setPage

        public void setPage​(Integer page)
      • getSuffix

        @Nullable
        public @Nullable String getSuffix()
        Returns the file type suffix of the image. (This suffix depends on the used image encoding and therefore is highly reliable.)
        Returns:
        suffix
      • setSuffix

        public void setSuffix​(String suffix)
      • getWidth

        @Nullable
        public @Nullable Integer getWidth()
        The width of the image in points.
        Returns:
        width
      • setWidth

        public void setWidth​(Integer width)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object