GroupDocs.Viewer for .NET is a .NET document viewer and rendering API for C# that lets developers view and render 190+ document and image formats without installing Microsoft Office or other third-party software. It supports popular formats such as DOCX, XLSX, PPTX, PDF, CAD drawings, emails, archives, and images, and can render documents to HTML, PDF, PNG, or JPG.
Quick example
The following C# example shows how to render a DOCX document to HTML with embedded resources:
usingGroupDocs.Viewer;usingGroupDocs.Viewer.Options;// Render a DOCX file to HTML with embedded resourcesusing(Viewerviewer=newViewer("sample.docx")){viewer.View(HtmlViewOptions.ForEmbeddedResources("page_{0}.html"));}
Starting with version 26.8, GroupDocs.Viewer is distributed as a NuGet metapackage. Install the GroupDocs.Viewer package and NuGet automatically restores the runtime package that matches your project’s target framework, such as net462, net6.0, or net6.0-windows. See Installation for details.
Features
190+ Supported File Formats: Render Microsoft Office, PDF, HTML, CAD, email, archives, images, and more.
Multiple Rendering Formats: Render documents to HTML, PDF, PNG, and JPG.
Embedded or External Resources: Produce self-contained HTML pages or HTML with separate CSS, fonts, and images.
Document Format Detection: Automatically detects the format of input files.
Windows, Linux, and macOS: One package covers .NET Framework 4.6.2+, .NET 6, and .NET 6 Windows.
Supported File Formats
GroupDocs.Viewer supports 190+ file formats across documents, spreadsheets, presentations, images, emails, CAD files, archives, and other commonly used file types. See the full list of supported formats.
The Developer Guide provides practical C# examples for working with GroupDocs.Viewer for .NET. Learn how to load documents, view and render files, retrieve document information, render specific pages, configure HTML/PDF/image output, and customize document rendering.
Technical Support
If you encounter an issue while using GroupDocs.Viewer for .NET or have a question about document rendering, visit the Technical Support page. It provides available support channels, troubleshooting resources, and ways to report issues or request assistance.
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.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.