Represents view information for a generic document.
The ViewInfo interface defines the contract for accessing and manipulating view information for a generic document in the GroupDocs.Viewer component. It provides methods to retrieve information such as the file type, pages, and other properties.
Example usage:
try (Viewer viewer = new Viewer("document.mpp")) {
final ViewInfo viewInfo = viewer.getViewInfo(ViewInfoOptions.forPngView());
if (viewInfo instanceof ProjectManagementViewInfo) {
ProjectManagementViewInfo projectManagementViewInfo = (ProjectManagementViewInfo) viewInfo;
// Use the projectManagementViewInfo object for further operations
}
// ...
}
Note: The default implementation of this interface is ViewInfoImpl.