Render hidden pages
Leave feedback
By default, GroupDocs.Viewer does not render hidden items. To render them, set the RenderHiddenPages property of the ViewOptions class to true
.
This feature is supported for the following format families:
- Visio documents (for hidden pages)
- PowerPoint presentations (for hidden slides)
- Spreadsheets files (for hidden worksheets)
The following code snippet shows how to enable rendering of hidden items:
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// ...
using (Viewer viewer = new Viewer("sample.pptx"))
{
// Create view options.
var viewOptions = HtmlViewOptions.ForEmbeddedResources();
// Enable rendering of hidden items.
viewOptions.RenderHiddenPages = true;
viewer.View(viewOptions);
}
Imports GroupDocs.Viewer
Imports GroupDocs.Viewer.Options
' ...
Module Program
Sub Main(args As String())
Using viewer As Viewer = New Viewer("sample.pptx")
' Create view options.
Dim viewOptions = HtmlViewOptions.ForEmbeddedResources()
' Enable rendering of hidden items.
viewOptions.RenderHiddenPages = True
viewer.View(viewOptions)
End Using
End Sub
End Module
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.