Skip to content

groupdocs-viewer/GroupDocs.Viewer-for-.NET

Repository files navigation

Document Viewer .NET API

This powerful .NET document processing API supports rendering of 170+ format formats to HTML5, image, and PDF formats, with more than 130 formats supported for auto-detection.

Directory Description
Demos Contains demo projects that demonstrate product features.
Examples C# examples and sample files that will help you learn how to use product features.
Plugins Contains Visual Studio plugins related to GroupDocs.Viewer.

Features

  • Viewing documents by rendering as HTML5, images, or PDF.
  • Rendering documents as self-contained HTML pages with embedded resources.
  • Rendering files in lossless PNG format or lossy JPG compressed format.
  • Rotating or reordering pages when rendering.
  • Getting information about document and rendering results, such as file type and number of pages on the output.
  • Getting a list of folders in an archive.
  • Getting a list of layers and layouts in a CAD drawing.
  • Getting a list of folders in an Outlook data file.
  • Getting information about the limitations of PDF documents.
  • Getting project start and end dates from an MS Project file.
  • Minifying HTML and CSS.
  • Rendering to responsive HTML.
  • Adding text watermarks on output pages.
  • Rendering documents with comments and notes.
  • Rendering documents using custom fonts.
  • Replacing missing fonts when rendering.

Supported formats

Microsoft Word®: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel®: XLS, XLSB, XLSM, XLSX, XLT, XLTX, XLAM
Microsoft PowerPoint®: PPT, PPTX, PPTM, PPS, PPSX, PPSM, POT, POTM, POTX
Microsoft Visio®: VDW, VDX, VSD, VSDM, VSDX, VSS, VSSM, VSSX, VST, VSTM, VSTX, VSX, VTX
Microsoft Project®: MPP, MPT, MPX
Microsoft OneNote®: ONE
OpenOffice®: ODG, OTG, OXPS, ODP, OTP, ODS, OTS, ODT, OTT, OXPS
AutoCAD®: DGN, DWF, DWT, DWG, DXF
CorelDraw®: CDR
Adobe Photoshop®: PSD, PSB
IBM Notes: NSF
Source code: CS, VB, AS, AS3, and other
Image: GIF, ICO, JP2, JPF, JPX, JPM, J2C, J2K, JPC, JPG, JPEG, SVG, TIF, TIFF
Markup: HTML, MHT, MHTML, MD
Portable: PDF
Archive: TAR, ZIP, BZ2, RAR, GZ
Email: EML, EMLX, MSG, OST, PST
Metafile: CGM, EMF, WMF, WMZ, EMZ, CMX
Other: IFC, STL, PS, XPS, TEX, SXC, DJVU, DNG, DIB, EPS

Platform independence

GroupDocs.Viewer for .NET does not require any external software or third-party tools and supports any 32-bit or 64-bit operating system with .NET Framework, .NET Core, or .NET installed. The supported operating systems and platforms are listed below:

Windows: Microsoft Windows Server 2003 and later, Microsoft Windows XP, Vista, 7, 8, 8.1, 10, 11
Mac: Mac OS X
Linux: Linux (Ubuntu, OpenSUSE, CentOS and others)
Development Environments: Microsoft Visual Studio, Microsoft Visual Studio for Mac, Rider from JetBrains
Supported Frameworks: .NET Framework, .NET Core, and .NET

Get started

To fetch and reference the GroupDocs.Viewer assembly in your project, execute Install-Package GroupDocs.Viewer from the Package Manager Console in Visual Studio. To update the GroupDocs.Viewer for .NET, please execute Update-Package GroupDocs.Viewer to get the latest version.

Please check the GitHub Repository for other common usage scenarios.

C# code to render XLSX file to HTML

using (Viewer viewer = new Viewer("invoice.xlsx"))
{
   HtmlViewOptions options = 
       HtmlViewOptions.ForEmbeddedResources();

   viewer.View(options);
}

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License