Render hidden pages
Leave feedback
By default, GroupDocs.Viewer does not render hidden items. To render them, call the setRenderHiddenPages() method of the ViewOptions class.
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:
import com.groupdocs.viewer.Viewer;
import com.groupdocs.viewer.options.HtmlViewOptions;
// ...
try (Viewer viewer = new Viewer("sample.pptx")) {
HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources();
viewOptions.setRenderHiddenPages(true);
viewer.view(viewOptions);
}
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.