GroupDocs.Viewer 20.8.0

There is a newer version of this package available.
See the version list below for details.
Install-Package GroupDocs.Viewer -Version 20.8.0
dotnet add package GroupDocs.Viewer --version 20.8.0
<PackageReference Include="GroupDocs.Viewer" Version="20.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Viewer --version 20.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GroupDocs.Viewer, 20.8.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install GroupDocs.Viewer as a Cake Addin
#addin nuget:?package=GroupDocs.Viewer&version=20.8.0

// Install GroupDocs.Viewer as a Cake Tool
#tool nuget:?package=GroupDocs.Viewer&version=20.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Document Viewer .NET API

This robust .NET on-premise file viewer API supports rendering of 130+ format types in HTML, image & PDF formats. 90+ formats are supported for auto-detection.

Document Viewer Processing Features

  • View documents by rendering in an HTML, image or PDF format.
  • Reuse common resources across several HTML pages.
  • Make each HTML page self=sufficient by rendering it with embedded resources.
  • Render files in the lossless PNG file format or lossy JPG compressed image format.
  • Apply page rotation or change page order when rendering a document to HTML or image formats.
  • Apply the specified text as watermark to all pages while being rendered into HTML or image.
  • Boost document loading speed to optimize application performance via caching.
  • Perform document text extract for PNG and JPG formats.
  • Fetch basic information about source documents.
  • Extract list of folders contained in an archive.
  • Fetch list of layers and layouts from a CAD drawing.
  • Get list of folders contained in an Outlook data file.
  • Extract information about PDF document printing restrictions.
  • Fetch start and end dates of a project from MS Project file.
  • Minify HTML & CSS to improve the rendering process.
  • Render to responsive HTML.
  • Apply watermark on the output pages of HTML, image or PDF files.
  • Render documents with comments, notes, and custom fonts.
  • Replace missing fonts while rendering.

New Featrues & Enhancements in Version 20.8

  • Added Lotus Notes Database (.NSF) file-format support.
  • Added Compressed SVG File (.SVGZ) file-format support.

For the detailed notes, please visit GroupDocs.Viewer for .NET 20.8 Release Notes.

HTML, Image, PDF 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
IBM Notes: NSF Programming: CS, VB, AS, AS3, ASM, BAT, C, CC, CMAKE, CPP, CSS, CXX, ERB, GROOVY, H, HAML, HH, JAVA, JS, JSON, LESS, LOG, M, MAKE, MD, ML, MM, PHP, PL, PROPERTIES, PY, RB, RST, SASS, SCALA, SCM, SCRIPT, SH, SML, SQL, VIM, YAML
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
Email: EML, EMLX, MSG, OST, PST
Metafile: CGM, EMF, WMF
Other: IFC, STL, PS, XPS, TEX, SXC, DJVU, DNG, DIB, EPS

Supported Formats for Auto Detection

Microsoft Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel: XLS, XLSB, XLSM, XLSX, 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
Programming: CS, VB
Image: GIF, ICO, JP2, JPF, JPX, JPM, J2C, J2K, JPC, JPG, JPEG, SVG, TIF, TIFF
Markup: HTML, MD
Portable: PDF
Archive: TAR, ZIP, BZ2
Email: EML, EMLX, MSG, OST, PST
Metafile: CGM, EMF, WMF
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 tool to be installed. GroupDocs.Viewer for .NET supports any 32-bit or 64-bit operating system where .NET or Mono framework is installed. The other details are as follows:

Microsoft Windows: Microsoft Windows Desktop (x86, x64) (XP & up), Microsoft Windows Server (x86, x64) (2000 & up), Windows Azure
Mac OS: Mac OS X
Linux: Linux (Ubuntu, OpenSUSE, CentOS and others)
Development Environments: Microsoft Visual Studio (2010 & up), Xamarin.Android, Xamarin.IOS, Xamarin.Mac, MonoDevelop 2.4 and later.
Supported Frameworks: GroupDocs.Conversion for .NET supports .NET and Mono frameworks.

Getting Started with GroupDocs.Viewer for .NET

Are you ready to give GroupDocs.Viewer for .NET a try? Simply execute Install-Package GroupDocs.Viewer from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Viewer assembly in your project. If you already have GroupDocs.Viewer for .Net and want to upgrade it, please execute Update-Package GroupDocs.Viewer to get the latest version.

Please check the GitHub Repository for other common usage scenarios.

Use C# Code to Render All Layouts of a DWG CAD Drawing

string outputDirectory = @"C:\output\RenderAllLayouts";
string pageFilePathFormat = Path.Combine(outputDirectory, "page_{0}.html");
using (Viewer viewer = new Viewer("with_layers_and_layouts.dwg"))
{
   HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources(pageFilePathFormat);
   options.CadOptions.RenderLayouts = true;
   viewer.View(options);
}

Apply Password to PDF File via C# Code

string outputDirectory = @"C:\output\ProtectPdfDocument";
string filePath = Path.Combine(outputDirectory, "output.pdf");
using (Viewer viewer = new Viewer("sample.docx"))
{
    // set PDF file security
    Security security = new Security();
    security.DocumentOpenPassword = "o123";
    security.PermissionsPassword = "p123";
    security.Permissions = Permissions.AllowAll ^ Permissions.DenyPrinting;

    PdfViewOptions options = new PdfViewOptions(filePath);
    options.Security = security;

    viewer.View(options);
}

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

NuGet packages (2)

Showing the top 2 NuGet packages that depend on GroupDocs.Viewer:

Package Downloads
Conholdate.Total

Conholdate.Total for .NET is a complete package to work with a large number of file formats from Microsoft Word, Excel, PowerPoint, Outlook, Project, Visio, Adobe Acrobat, Illustrator, Photoshop, AutoCAD, OpenOffice and many more. Conholdate.Total for .NET allows you to use any API released under Aspose and GroupDocs for .NET in order to create, convert, read, edit, update and print popular document formats. Moreover, you may view, annotate, watermark, assemble, classify, search, redact, parse, merge and compare documents without needing to install the native applications. It helps you in file format manipulation and document automation via simple API. Conholdate.Total for .NET also includes specialized APIs to read and create barcodes, extract text from images using OCR as well as extract human marked data from questioners, surveys, quizzes, MCQ papers and feedback forms.

GroupDocs.Viewer.UI.SelfHost.Api

GroupDocs.Viewer.UI.SelfHost.Api containing API implementation that is based on GroupDocs.Viewer for .NET see https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET-UI for more details.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
21.10.0 84 10/21/2021
21.9.0 578 9/16/2021
21.8.0 4,705 8/17/2021
21.7.0 4,161 7/26/2021
21.6.0 572 6/18/2021
21.5.0 963 5/27/2021
21.4.1 6,520 4/28/2021
21.4.0 288 4/19/2021
21.3.0 2,457 3/19/2021
21.2.0 940 2/18/2021
21.1.0 1,065 1/21/2021
20.12.0 2,053 12/24/2020
20.11.0 1,291 11/18/2020
20.10.0 1,386 10/26/2020
20.9.0 19,780 9/29/2020
20.8.0 4,692 8/31/2020
20.7.0 1,613 7/28/2020
20.6.1 1,258 7/6/2020
20.6.0 582 6/26/2020
20.5.0 1,071 5/27/2020
20.4.0 31,958 4/28/2020
20.3.0 1,023 3/27/2020
20.2.0 958 2/26/2020
20.1.0 3,361 1/28/2020
19.12.0 859 12/27/2019
19.11.0 1,064 11/29/2019
19.10.0 1,442 10/31/2019
19.9.0 786 9/12/2019
19.8.0 912 8/10/2019
19.6.0 1,509 6/7/2019
19.5.0 13,504 5/7/2019
19.4.0 15,720 4/5/2019
19.3.1 999 3/23/2019
19.3.0 1,693 3/8/2019
19.2.0 1,007 2/6/2019
19.1.0 1,480 1/9/2019
18.12.0 795 12/6/2018
18.11.0 2,751 11/2/2018
18.10.0 7,660 10/3/2018
18.9.0 826 9/4/2018
18.8.1 1,398 8/14/2018
18.8.0 684 8/2/2018
18.7.0 1,231 7/3/2018
18.6.1 808 6/13/2018
18.6.0 726 6/6/2018
18.5.0 1,015 5/2/2018
18.4.0 817 4/4/2018
18.3.0 1,566 3/2/2018
18.1.0 1,041 1/19/2018
17.12.0 1,222 12/21/2017
17.11.0 39,215 11/22/2017
17.10.0 970 10/26/2017
17.9.0 832 9/28/2017
17.9.0-alpha-20170928052141 504 9/28/2017
17.9.0-alpha-20170928045543 530 9/28/2017