Class PdfPageSize
java.lang.Object
com.codename1.pdf.PdfPageSize
A page size in points (1/72 inch).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfPageSizeISO A3, 297 by 420 mm.static final PdfPageSizeISO A4, 210 by 297 mm.static final PdfPageSizeISO A5, 148 by 210 mm.static final PdfPageSizeUS Legal, 8.5 by 14 inches.static final PdfPageSizeUS Letter, 8.5 by 11 inches.static final PdfPageSizeUS Tabloid, 11 by 17 inches. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatThe height in points.floatgetWidth()The width in points.This size turned on its side: the longer edge horizontal.static PdfPageSizemillimeters(float widthMm, float heightMm) A size ofwidthMmbyheightMmmillimeters.portrait()This size upright: the longer edge vertical.
-
Field Details
-
A3
ISO A3, 297 by 420 mm. -
A4
ISO A4, 210 by 297 mm. -
A5
ISO A5, 148 by 210 mm. -
LETTER
US Letter, 8.5 by 11 inches. -
LEGAL
US Legal, 8.5 by 14 inches. -
TABLOID
US Tabloid, 11 by 17 inches.
-
-
Constructor Details
-
PdfPageSize
public PdfPageSize(float width, float height) A size ofwidthbyheightpoints.
-
-
Method Details
-
millimeters
A size ofwidthMmbyheightMmmillimeters. -
getWidth
public float getWidth()The width in points. -
getHeight
public float getHeight()The height in points. -
landscape
This size turned on its side: the longer edge horizontal. -
portrait
This size upright: the longer edge vertical.
-