Render hidden pages

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 (Viewer viewer = new Viewer("sample.pptx"))
    // Create an HTML file.
    var viewOptions = HtmlViewOptions.ForEmbeddedResources();
    // Enable rendering of hidden items.
    viewOptions.RenderHiddenPages = true;