Class PDFSize


public final class PDFSize extends Object
Physical size of a PDF page in inches. If the aspect ratio doesn't match the aspect ratio of the page in pixels, margins will be added on both sides of the page image. If 0 is provided for the width or height, it is computed to match the aspect ratio of the image. Eg, for a receipt, we usually use width = 3.54f and height = 0.
  • Constructor Details

    • PDFSize

      public PDFSize(double width, double height)
  • Method Details

    • getWidth

      public double getWidth()
    • getHeight

      public double getHeight()
    • toString

      public String toString()
      toString in class Object