Render hidden pages

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-viewer -- dnx GroupDocs.Viewer.Mcp --yes
Folders, licensing and more →

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

sample.pptx is the sample file used in this example. Click here to download it.

p_1.html (467 KB)
p_2.html (329 KB)
p_3.html (344 KB)
p_4.html (343 KB)
p_5.html (347 KB)
p_6.html (333 KB)
p_7.html (327 KB)
p_8.html (330 KB)

Download full output