public interface PdfViewInfo extends ViewInfo
The PdfViewInfo interface defines the contract for accessing and manipulating view information for a PDF document in the GroupDocs.Viewer component. It provides methods to retrieve information such as allowing printing, and other properties.
Example usage:
try (Viewer viewer = new Viewer("document.pdf")) {
final PdfViewInfo viewInfo = (PdfViewInfo) viewer.getViewInfo(ViewInfoOptions.forPngView());
// Use the viewInfo object for further operations
}
Note: The default implementation of this interface is PdfViewInfoImpl.
Viewer,
ViewInfoOptions| Modifier and Type | Method and Description |
|---|---|
boolean |
isPrintingAllowed()
Checks if printing of the document is allowed.
|
void |
setPrintingAllowed(boolean allowPrinting)
Sets whether printing of the document is allowed.
|
getFileType, getPages, setFileType, setPagesboolean isPrintingAllowed()
Checks if printing of the document is allowed.
true if printing is allowed, false otherwise.void setPrintingAllowed(boolean allowPrinting)
allowPrinting - true to allow printing, false otherwise.Copyright © 2025. All rights reserved.