Class OCRPageDimensions

java.lang.Object
nl.dannyj.mistral.models.ocr.OCRPageDimensions

public class OCRPageDimensions extends Object
Represents the dimensions of a PDF page's screenshot image.
  • Constructor Details

    • OCRPageDimensions

      public OCRPageDimensions()
    • OCRPageDimensions

      public OCRPageDimensions(Integer dpi, Integer height, Integer width)
      Creates a new OCRPageDimensions instance.
      Parameters:
      dpi - Dots per inch of the page-image.
      height - Height of the image in pixels.
      width - Width of the image in pixels.
  • Method Details

    • builder

    • getDpi

      public Integer getDpi()
      Dots per inch of the page-image.
      Returns:
      The DPI of the page image.
    • getHeight

      public Integer getHeight()
      Height of the image in pixels.
      Returns:
      The height of the image.
    • getWidth

      public Integer getWidth()
      Width of the image in pixels.
      Returns:
      The width of the image.
    • setDpi

      public void setDpi(Integer dpi)
      Dots per inch of the page-image.
    • setHeight

      public void setHeight(Integer height)
      Height of the image in pixels.
    • setWidth

      public void setWidth(Integer width)
      Width of the image in pixels.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object