public enum PageSize extends Enum<PageSize>
The size of the page.
Enum Constant and Description |
---|
A0
The size of the A0 page in points is 3371 x 2384
|
A1
The size of the A1 page in points is 2384 x 1685
|
A2
The size of the A2 page in points is 1684 x 1190
|
A3
The size of the A3 page in points is 1190 x 842
|
A4
The size of the A4 page in points is 842 x 595
|
LEDGER
The size of the Ledger page in points is 1224 x 792
|
LETTER
The size of the Letter page in points is 792 x 612
|
UNSPECIFIED
The default, unspecified page size.
|
Modifier and Type | Method and Description |
---|---|
static PageSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PageSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageSize A0
The size of the A0 page in points is 3371 x 2384
public static final PageSize A1
The size of the A1 page in points is 2384 x 1685
public static final PageSize A2
The size of the A2 page in points is 1684 x 1190
public static final PageSize A3
The size of the A3 page in points is 1190 x 842
public static final PageSize A4
The size of the A4 page in points is 842 x 595
public static final PageSize LEDGER
The size of the Ledger page in points is 1224 x 792
public static final PageSize LETTER
The size of the Letter page in points is 792 x 612
public static final PageSize UNSPECIFIED
The default, unspecified page size.
public static PageSize valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PageSize[] values()
for (PageSize c : PageSize.values()) System.out.println(c);