GroupDocs.Viewer at a glance

API to render, display, convert documents, slides, diagrams, and many other document types in .NET applications

Illustration viewer

View documents efficiently & reliably

With GroupDocs.Viewer API you can efficiently render documents of any supportable formats to HTML, JPEG, PNG, and PDF with flexible and powerful options while maintaining content and document structure integrity. GroupDocs.Viewer supports .NET Framework 4.6.2 and .NET 6.0, it works on Windows and Linux platforms.

Most popular file and document formats are supported

We support rendering over the 180 most popular file and document formats that include Word, Excel, PDF, PowerPoint, OpenDocument formats family, Archives, Raster and Vector images, e-Books, programming languages and markups, and many other file types, including encrypted files with password protection.

Customizable output

GroupDocs.Viewer allows not only to render the document, but also to control how exactly, which parts of the document should be rendered or now, how they should be rendered, and to apply different transformations to the rendered output.

UI for ASP.NET Core

We provide an open source UI package for ASP.NET Core that can be added to your project in a couple of minutes. The Viewer.UI package contains an Angular-based web-UI and delivers a set of useful APIs and data storage providers.

Platforms support

GroupDocs.Viewer for .NET supports the following operating systems, frameworks and package managers

Amazon
Docker
Azure
VS Code
ReSharper
macOS
Linux
NuGet

Windows-specific package

  • Supports .NET Framework 4.6.2+ and .NET 6.0
  • The most comprehensive file formats support
  • Depends on System.Drawing and System.Drawing.Common
NuGet download

Cross-platform package

  • Supports .NET 6.0 and higher versions
  • Limited file formats support
  • Works on Windows, Linux and macOS
NuGet download

Supported file formats

GroupDocs.Viewer for .NET supports operations with the following file formats.

Microsoft Office, OpenDocument and text formats

  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLT, XLTM, XLTX
  • PowerPoint: PPT, PPTX, PPS, PPSX, PPSM, POT, POTM, POTX, PPTM
  • Project: MPP, MPT, MPX Supported by Windows-specific package
  • Outlook: MSG, EML, EMLX, PST, OST
  • OneNote: ONE Supported by Windows-specific package
  • OpenDocument: ODT, OTT, ODS, ODP, OTP, OTS, ODG
  • Fixed Page Layout: PDF, TEX, XPS, OXPS
  • e-Books: EPUB, MOBI, DjVu
  • Delimiter-Separated Values: CSV, TSV

Images, Graphics & Diagrams

  • Raster images: BMP, GIF, JPG, PNG, TIFF, WebP, DNG, DIB, Jpeg2000 family
  • Windows Icon: ICO
  • Scalable Vector Graphics: SVG, CDR, CMX, IGS, SVGZ
  • Adobe Photoshop: PSD, PSB Supported by Windows-specific package
  • Stereo Lithography (3D Printing): STL
  • Medical Imaging: DICOM
  • Plotter Documents: PLT, HPG
  • Autodesk Design Web Formats: DWF, DWG
  • AutoCAD Drawing: DWT, IFC, STL, CF2

Other

  • Web: HTML, MHT, MHTML, XML
  • Metafile: WMF, EMF, CGM, EMZ, WMZ
  • Visio: VSD, VDX, VSS, VSSX, VSX, VST, VSTX, VTX, VSDX, VDW, VSTM, VSSM, VSDM Supported by Windows-specific package
  • Project: MPP, MPT, MPX
  • PostScript: PS, EPS
  • Archives: ZIP, TAR, BZ2, GZ, RAR, RAR5
  • Other: VCF, VCARD, NUMBERS, NSF, OBJ
  • C/C++/C# Files: C, CC, C# , CPP, CXX, CS, H, HH, M, MM
  • Java/JavaScript Files: JAVA, JS, JSON, PROPERTIES

GroupDocs.Viewer features

Seamlessly render, display, and convert PDF and Office Documents

Feature icon

View documents in HTML

Convert document of any type into a HTML document with CSS and SVG, which can be displayed in any modern web-browser.

Feature icon

Rasterize documents

Rasterize any supportable document format to the raster image, with adjustable image format and compression quality.

Feature icon

Render and highlight programming codes

Support of all popular programming, scripting, and markup languages, with ability to parse and highlight their syntax.

Feature icon

Convert to PDF

Document of any supportable format can be easily converted and saved to the PDF with adjustable options.

Feature icon

Apply transformations

Output document can be transformed during rendering - pages can be rotated and/or rearranged, and text watermark may be placed atop of them.

Feature icon

HTML output adjustment

Output HTML documents, generated by the GroupDocs.Viewer, can be tuned very finely: it is allowed to save to the stream or file, with external or embedded resources, callbacks and so on.

Feature icon

Support of complex document structures

GroupDocs.Viewer supports not only the single documents, but also files, which internally contain a list or hierarchical structure of documents, like email messages with attachments, ZIP archives with internal files within folders, multi-page TIFF images, and so on.

Feature icon

Optimization options

GroupDocs.Viewer contains an adjustable cache subsystem, which can fasten the loading time by using the cached versions of the documents. Also a set of different options for different formats allows to exclude some unnecessary parts or aspects of documents from the rendering (fonts, hidded worksheets, email attachments) to optimize the overall performance

Feature icon

Support of password-protected documents

GroupDocs.Viewer allows to open the encrypted documents of different types: PDF, WordProcessing, Spreadsheet, Presentation, and other, by specifying a password in the loading options.

Code samples

Some use cases of typical GroupDocs.Viewer for .NET operations

Render DOCX to HTML

The HtmlViewOptions class properties allow you to control the conversion process, more on that here. For instance, you can embed all external resources in the output HTML file, minify the output file, and optimize it for printing.

C#

using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;

// Instantiate viewer
using (Viewer viewer = new Viewer("resume.docx"))
{
    // Set output HTML options
    HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources();
    
    // Render DOCX to HTML with embedded resources
    viewer.View(options);
}

Export PPTX to PDF

Create a PdfViewOptions class instance and pass it to the Viewer.View method to convert a PowerPoint PPTX file to PDF. The PdfViewOptions class properties allow you to control the conversion process. For instance, you can protect the output PDF file, reorder its pages, and specify the quality of document images. Refer to the following documentation section for details.

C#

using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;

using (var viewer = new Viewer("presentation.pptx"))
{
    // Set output PDF options       
    var viewOptions = new PdfViewOptions("presentation.pdf");
    
    // Export PPTX to PDF       
    viewer.View(viewOptions);
}

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English