The BaseViewOptions class serves as the base for rendering options in GroupDocs.Viewer. It allows you to customize the rendering behavior of the output HTML, PDF, PNG, and JPEG files when rendering specific document formats.
By default, GroupDocs.Viewer does not render comments. To do this, set this property to true. For code example, see the documentation.
Returns:
boolean - true if comments should be rendered, false otherwise.
setRenderComments(boolean value)
public final void setRenderComments(boolean value)
Enables rendering comments.
By default, GroupDocs.Viewer does not render comments. To do this, set this property to true. For code example, see the documentation.
Parameters:
Parameter
Type
Description
value
boolean
true if comments should be rendered, false otherwise.
isRemoveComments()
public final boolean isRemoveComments()
Disables rendering comments when set to true. By default is false \u2014 all comments are displayed.
Some document formats like PDF and WordProcessing may contain comments. By default the GroupDocs.Viewer renders them. With this option set to true the comments may be excluded from the resultant document. This option replaces the obsolete ‘RenderComments’ property.
Returns:
boolean - true if comments should be rendered, false otherwise.
setRemoveComments(boolean value)
public final void setRemoveComments(boolean value)
Disables rendering comments when set to true. By default is false \u2014 all comments are displayed.
Some document formats like PDF and WordProcessing may contain comments. By default the GroupDocs.Viewer renders them. With this option set to true the comments may be excluded from the resultant document. This option replaces the obsolete ‘RenderComments’ property.
Parameters:
Parameter
Type
Description
value
boolean
true if comments should be rendered, false otherwise.
isRenderNotes()
public final boolean isRenderNotes()
Enables rendering notes.
Some files, such as presentations or Microsoft project files, may contain notes. By default, GroupDocs.Viewer does not render notes. To do this, set this property to true. For code example, see the documentation.
Returns:
boolean - true if notes should be rendered, false otherwise.
setRenderNotes(boolean value)
public final void setRenderNotes(boolean value)
Enables rendering notes.
Parameters:
Parameter
Type
Description
value
boolean
true if notes should be rendered, false otherwise.
isRenderHiddenPages()
public final boolean isRenderHiddenPages()
Enables rendering of hidden pages.
Some files, such as presentations or spreadsheets, may contain hidden pages. By default, GroupDocs.Viewer does not render these pages. To do this, set this property to true. For code example, see the documentation.
Returns:
boolean - true if hidden pages should be rendered, false otherwise.
setRenderHiddenPages(boolean value)
public final void setRenderHiddenPages(boolean value)
Enables rendering of hidden pages.
Some files, such as presentations or spreadsheets, may contain hidden pages. By default, GroupDocs.Viewer does not render these pages. To do this, set this property to true. For code example, see the documentation.
Parameters:
Parameter
Type
Description
value
boolean
true if hidden pages should be rendered, false otherwise.
getDefaultFontName()
public final String getDefaultFontName()
Default font to be used when a particular font used in the document can’t be found.
Use this property to set the default font for a document. GroupDocs.Viewer uses this font during rendering instead of any not installed fonts. For code examples, see the documentation.
Returns:
java.lang.String - the name of the default font.
setDefaultFontName(String value)
public final void setDefaultFontName(String value)
Default font to be used when a particular font used in the document can’t be found.
Use this property to set the default font for a document. GroupDocs.Viewer uses this font during rendering instead of any not installed fonts. For code examples, see the documentation.
Parameters:
Parameter
Type
Description
value
java.lang.String
The name of the default font.
getArchiveOptions()
public final ArchiveOptions getArchiveOptions()
Retrieves the archive files view options.
For more information and code examples, see the documentation.
Returns:ArchiveOptions - the archive files view options.
setArchiveOptions(ArchiveOptions value)
public final void setArchiveOptions(ArchiveOptions value)
Sets the archive files view options.
For more information and code examples, see the documentation.