Class PdfPageSize

java.lang.Object
com.codename1.pdf.PdfPageSize

public final class PdfPageSize extends Object
A page size in points (1/72 inch).
  • Field Details

    • A3

      public static final PdfPageSize A3
      ISO A3, 297 by 420 mm.
    • A4

      public static final PdfPageSize A4
      ISO A4, 210 by 297 mm.
    • A5

      public static final PdfPageSize A5
      ISO A5, 148 by 210 mm.
    • LETTER

      public static final PdfPageSize LETTER
      US Letter, 8.5 by 11 inches.
    • TABLOID

      public static final PdfPageSize TABLOID
      US Tabloid, 11 by 17 inches.
  • Constructor Details

    • PdfPageSize

      public PdfPageSize(float width, float height)
      A size of width by height points.
  • Method Details

    • millimeters

      public static PdfPageSize millimeters(float widthMm, float heightMm)
      A size of widthMm by heightMm millimeters.
    • getWidth

      public float getWidth()
      The width in points.
    • getHeight

      public float getHeight()
      The height in points.
    • landscape

      public PdfPageSize landscape()
      This size turned on its side: the longer edge horizontal.
    • portrait

      public PdfPageSize portrait()
      This size upright: the longer edge vertical.