public interface Page extends Serializable
The Page interface defines the contract for accessing and manipulating a single page that can be viewed in the GroupDocs.Viewer component. It provides methods to retrieve information such as the page number, size, and other properties.
Example usage:
try (Viewer viewer = new Viewer("document.pst")) {
final OutlookViewInfo viewInfo = (OutlookViewInfo) viewer.getViewInfo(ViewInfoOptions.forHtmlView());
List<Page> pages = viewInfo.getPages();
for (Page page : pages) {
// Use the page object for further operations
}
}
Note: The default implementation of this interface is PageImpl.
Viewer,
OutlookViewInfo,
ViewInfoOptions| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Retrieves the height of the page in pixels when viewing as JPG or PNG.
|
List<Line> |
getLines()
Retrieves the lines contained in the page when viewing as JPG or PNG with enabled Text Extraction.
|
String |
getName()
Retrieves the name of the worksheet or page.
|
int |
getNumber()
Retrieves the page number.
|
int |
getWidth()
Retrieves the width of the page in pixels when viewing as JPG or PNG.
|
boolean |
isVisible()
Retrieves the page visibility indicator.
|
void |
setHeight(int height)
Sets the height of the page in pixels when viewing as JPG or PNG.
|
void |
setLines(List<Line> lines)
Sets the lines contained in the page when viewing as JPG or PNG with enabled Text Extraction.
|
void |
setName(String name)
Sets the name of the worksheet or page.
|
void |
setNumber(int number)
Sets the page number.
|
void |
setVisible(boolean visible)
Sets the page visibility indicator.
|
void |
setWidth(int width)
Sets the width of the page in pixels when viewing as JPG or PNG.
|
int getHeight()
Retrieves the height of the page in pixels when viewing as JPG or PNG.
List<Line> getLines()
Retrieves the lines contained in the page when viewing as JPG or PNG with enabled Text Extraction.
LineString getName()
Retrieves the name of the worksheet or page.
int getNumber()
Retrieves the page number.
int getWidth()
Retrieves the width of the page in pixels when viewing as JPG or PNG.
boolean isVisible()
Retrieves the page visibility indicator.
void setHeight(int height)
height - the height to set for the page.void setLines(List<Line> lines)
lines - the list of lines to set for the page.void setName(String name)
name - the name to set for the worksheet or page.void setNumber(int number)
number - the page number to set.void setVisible(boolean visible)
visible - true if the page is visible, false otherwise.void setWidth(int width)
width - the width to set for the page.Copyright © 2025. All rights reserved.