public enum PageSize extends Enum<PageSize> implements com.groupdocs.conversion.options.convert.IPageSize
| Modifier and Type | Class and Description |
|---|---|
static class |
PageSize.PageSizeCustom |
| Enum Constant and Description |
|---|
A3 |
A4 |
A5 |
B4 |
B5 |
CUSTOM |
ENVELOPE_DL |
EXECUTIVE |
FOLIO |
LEDGER |
LEGAL |
LETTER |
PAPER_10_X_14 |
PAPER_11_X_17 |
QUARTO |
STATEMENT |
TABLOID |
UNSET |
| Modifier and Type | Method and Description |
|---|---|
static PageSize.PageSizeCustom |
createCustom(float width,
float height) |
float |
getHeight() |
String |
getKey() |
String |
getName() |
float |
getWidth() |
static float |
pixelsToPoints(int pixels,
int dpi) |
static int |
pointsToPixels(float points,
int dpi) |
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 A3
public static final PageSize A4
public static final PageSize A5
public static final PageSize B4
public static final PageSize B5
public static final PageSize CUSTOM
public static final PageSize ENVELOPE_DL
public static final PageSize EXECUTIVE
public static final PageSize FOLIO
public static final PageSize LEDGER
public static final PageSize LEGAL
public static final PageSize LETTER
public static final PageSize PAPER_10_X_14
public static final PageSize PAPER_11_X_17
public static final PageSize QUARTO
public static final PageSize STATEMENT
public static final PageSize TABLOID
public static final PageSize UNSET
public static PageSize.PageSizeCustom createCustom(float width, float height)
public float getHeight()
getHeight in interface com.groupdocs.conversion.options.convert.IPageSizepublic String getKey()
getKey in interface com.groupdocs.conversion.options.convert.IPageSizepublic String getName()
getName in interface com.groupdocs.conversion.options.convert.IPageSizepublic float getWidth()
getWidth in interface com.groupdocs.conversion.options.convert.IPageSizepublic static float pixelsToPoints(int pixels,
int dpi)
public static int pointsToPixels(float points,
int dpi)
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);
Copyright © 2024. All rights reserved.