public enum PageSize extends Enum<PageSize>
The PageSize enum represents different page sizes in the GroupDocs.Viewer component. It provides a set of predefined page sizes that can be used to specify the dimensions of a page in various document rendering scenarios.
Example usage:
HtmlViewOptions htmlViewOptions = HtmlViewOptions.forEmbeddedResources();
ProjectManagementOptions projectManagementOptions = htmlViewOptions.getProjectManagementOptions();
projectManagementOptions.setPageSize(PageSize.A4);
try (Viewer viewer = new Viewer("document.mpp")) {
viewer.view(htmlViewOptions);
// Use the viewer object for further operations
}
Viewer,
HtmlViewOptions,
ProjectManagementOptions| Enum Constant and Description |
|---|
A0
The size of the A1 page in points is 2384 x 1685.
|
A1
The size of the A2 page in points is 1684 x 1190.
|
A2
The size of the A3 page in points is 1190 x 842.
|
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 A0 page in points is 3371 x 2384.
|
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 A1 page in points is 2384 x 1685. This page size is part of the ISO 216 international standard.
public static final PageSize A1
The size of the A2 page in points is 1684 x 1190. This page size is part of the ISO 216 international standard.
public static final PageSize A2
The size of the A3 page in points is 1190 x 842. This page size is part of the ISO 216 international standard.
public static final PageSize A3
The size of the A3 page in points is 1190 x 842. This page size is part of the ISO 216 international standard.
public static final PageSize A4
The size of the A4 page in points is 842 x 595. This page size is part of the ISO 216 international standard.
public static final PageSize LEDGER
The size of the A0 page in points is 3371 x 2384. This large page size is part of the ISO 216 international standard.
public static final PageSize LETTER
The size of the Letter page in points is 792 x 612. This page size is commonly used for letters and documents in North America.
public static final PageSize UNSPECIFIED
The default, unspecified page size. This size is used when no specific page size is specified.
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.