public abstract class ViewOptions extends BaseViewOptions
The ViewOptions class extends the BaseViewOptions class and serves as a base class for rendering options in the GroupDocs.Viewer component. It encapsulates common settings and parameters that can be used for rendering various types of documents into different formats.
Note: The ViewOptions class should not be used directly, use HtmlViewOptions, PdfViewOptions, PngViewOptions and so on instead.
JpgViewOptions| Constructor and Description |
|---|
ViewOptions() |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,Rotation> |
getPageRotations()
Retrieves the page rotations.
|
Watermark |
getWatermark()
Gets the text watermark applied to each page.
|
boolean |
isPageRotationsInitialized_Internal()
To prevent creating the instance just to check that it is empty
|
void |
rotatePage(int pageNumber,
Rotation rotation)
Applies a clockwise rotation to the specified page.
|
void |
setWatermark(Watermark value)
Sets the text watermark to be applied to each page.
|
getArchiveOptions, getCadOptions, getDefaultFontName, getEmailOptions, getMailStorageOptions, getOutlookOptions, getPdfOptions, getPresentationOptions, getProjectManagementOptions, getSpreadsheetOptions, getTextOptions, getVisioRenderingOptions, getWebDocumentOptions, getWordProcessingOptions, isCadOptionsInitialized_Internal, isRenderComments, isRenderHiddenPages, isRenderNotes, setArchiveOptions, setCadOptions, setDefaultFontName, setEmailOptions, setMailStorageOptions, setOutlookOptions, setPdfOptions, setPresentationOptions, setProjectManagementOptions, setRenderComments, setRenderHiddenPages, setRenderNotes, setSpreadsheetOptions, setTextOptions, setVisioRenderingOptions, setWebDocumentOptions, setWordProcessingOptionspublic Map<Integer,Rotation> getPageRotations()
Retrieves the page rotations.
If both setWatermark(Watermark) and getPageRotations() are specified,
the watermark will be applied to the rotated pages.
For details, see the documentation.
public final Watermark getWatermark()
Gets the text watermark applied to each page.
In case both setWatermark(Watermark) and getPageRotations() are specified,
the watermark will be applied to the rotated pages.
For details, see the documentation.
public boolean isPageRotationsInitialized_Internal()
public final void rotatePage(int pageNumber,
Rotation rotation)
Applies a clockwise rotation to the specified page.
For details, see the documentation.pageNumber - The page number, must be strictly greater than 0.rotation - The rotation value.IllegalArgumentException - Thrown when pageNumber is less than or equal to zero.IllegalArgumentException - Thrown when the rotation for the page with number pageNumber has already been added.public final void setWatermark(Watermark value)
Sets the text watermark to be applied to each page.
In case both ViewOptions.Watermark and getPageRotations() are specified,
the watermark will be applied to the rotated pages.
For details, see the documentation.
value - The text watermark to be set.Copyright © 2024. All rights reserved.