Render hidden pages

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);
}