Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public final class PdfPageSize

  1. Object
  2. PdfPageSize
A page size in points (1/72 inch).

Fields

public static final PdfPageSize A3ISO A3, 297 by 420 mm.
public static final PdfPageSize A4ISO A4, 210 by 297 mm.
public static final PdfPageSize A5ISO A5, 148 by 210 mm.
public static final PdfPageSize LETTERUS Letter, 8.5 by 11 inches.
public static final PdfPageSize LEGALUS Legal, 8.5 by 14 inches.
public static final PdfPageSize TABLOIDUS Tabloid, 11 by 17 inches.

Constructors

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

Methods

public static PdfPageSize millimeters(float widthMm, float heightMm)A size of widthMm by heightMm millimeters.
public float getWidth()The width in points.
public float getHeight()The height in points.
public PdfPageSize landscape()This size turned on its side: the longer edge horizontal.
public PdfPageSize portrait()This size upright: the longer edge vertical.

Inherited methods

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.