public class PageConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BACKGROUND
Background key
|
static String |
BACKGROUND_COLOR
Background color key
|
static String |
FIT_TO_PAGE
Fit content to page key
|
static String |
MARGINS_LARGE
"Large" page margins value
|
static String |
MARGINS_MEDIUM
"Medium" page margins value
|
static String |
MARGINS_SMALL
"Small" page margins value
|
static String |
MARGINS_ZERO
"Zero" page margins value
|
static String |
ORIENTATION
Orientation key, for the named orienation of page, Portret or Landscape.
|
static String |
ORIENTATION_BEST_FIT
"Best fit" orientation value
|
static String |
ORIENTATION_LANDSCAPE
"Landscape" orientation value
|
static String |
ORIENTATION_PORTRAIT
"Portrait" orientation value
|
static String |
PAGE_MARGINS
Page margins key
|
static String |
PAGE_SIZE
Page size key
|
static String |
SIZE_A3
"A3" page size value
|
static String |
SIZE_A4
"A4" page size value
|
static String |
SIZE_A5
"A5" page size value
|
static String |
SIZE_A6
"A6" page size value
|
static String |
SIZE_EXECUTIVE
"Executive" page size value
|
static String |
SIZE_INTERNATIONAL
"International" page size value
|
static String |
SIZE_LEDGER
"Ledger" page size value
|
static String |
SIZE_LEGAL
"Legal" page size value
|
static String |
SIZE_LETTER
"Letter" page size value
|
static String |
TRANSPARENT
Transparent background key
|
static String |
VIEWING_ORIENTATION
Viewing orientation key, for rotation matrix distinguishing orientation of content on the page.
|
| Modifier and Type | Method and Description |
|---|---|
static Insets |
getMargins(Insets insets,
String orientation)
Calculate page margins in specified orientation
|
static Insets |
getMargins(String size) |
static String[] |
getOrientationList() |
static Dimension |
getSize(Dimension size,
String orientation)
Calculates page size in given page orientation
|
static Dimension |
getSize(String size)
Calculates page size in "Portrait" page orientation
|
static Dimension |
getSize(String size,
String orientation)
Calculates page size in given page orientation
|
static String[] |
getSizeList() |
public static final String ORIENTATION
public static final String VIEWING_ORIENTATION
public static final String ORIENTATION_PORTRAIT
public static final String ORIENTATION_LANDSCAPE
public static final String ORIENTATION_BEST_FIT
public static final String PAGE_SIZE
public static final String SIZE_INTERNATIONAL
public static final String SIZE_A3
public static final String SIZE_A4
public static final String SIZE_A5
public static final String SIZE_A6
public static final String SIZE_LETTER
public static final String SIZE_LEGAL
public static final String SIZE_EXECUTIVE
public static final String SIZE_LEDGER
public static final String PAGE_MARGINS
public static final String MARGINS_ZERO
public static final String MARGINS_SMALL
public static final String MARGINS_MEDIUM
public static final String MARGINS_LARGE
public static final String FIT_TO_PAGE
public static final String TRANSPARENT
public static final String BACKGROUND_COLOR
public static final String BACKGROUND
public static final String[] getOrientationList()
public static final String[] getSizeList()
public static final Dimension getSize(String size)
size - predefined page sizepublic static final Dimension getSize(String size, String orientation)
size - predefined page sizeorientation - the page orientationpublic static final Dimension getSize(Dimension size, String orientation)
size - Original page sizeorientation - The page orientationpublic static final Insets getMargins(String size)
size - predefined page sizeCopyright © 2025 Aspose. All Rights Reserved.