GroupDocs.Viewer-CLI
22.5.0
See the version list below for details.
dotnet tool install --global GroupDocs.Viewer-CLI --version 22.5.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local GroupDocs.Viewer-CLI --version 22.5.0
#tool dotnet:?package=GroupDocs.Viewer-CLI&version=22.5.0
nuke :add-package GroupDocs.Viewer-CLI --version 22.5.0
Document Viewer .NET API
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
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 a 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 a list of folders contained in an archive.
- Fetch a list of layers and layouts from a CAD drawing.
- Get a list of folders contained in an Outlook data file.
- Extract information about PDF document printing restrictions.
- Fetch the start and end dates of a project from the 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.
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, PSB
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, 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
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, PSB
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.
Get Started
Are you ready to give GroupDocs.Viewer for .NET (CLI) a try? Simply execute dotnet tool install --global GroupDocs.Viewer-CLI
to install as a gloabl tool. For the installation as local please execute:
dotnet new tool-manifest
if you are setting up this repo
dotnet tool install --local GroupDocs.Viewer-CLI
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 | Search | Free Support | Temporary License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
24.10.0 | 278 | 11/7/2024 |
24.9.0 | 399 | 10/2/2024 |
24.8.0 | 579 | 9/3/2024 |
24.7.0 | 359 | 8/2/2024 |
24.6.0 | 653 | 7/2/2024 |
24.5.0 | 460 | 5/31/2024 |
24.4.0 | 658 | 4/30/2024 |
24.3.0 | 1,975 | 4/1/2024 |
24.2.0 | 3,913 | 3/1/2024 |
24.1.1 | 6,045 | 2/3/2024 |
23.12.0 | 7,739 | 12/29/2023 |
23.10.0 | 11,621 | 10/6/2023 |
23.8.0 | 12,255 | 9/6/2023 |
23.6.0 | 13,837 | 6/26/2023 |
23.4.0 | 12,577 | 4/30/2023 |
23.3.0 | 11,794 | 4/2/2023 |
23.1.0 | 12,650 | 1/28/2023 |
22.11.0 | 11,386 | 12/9/2022 |
22.9.0 | 11,513 | 10/1/2022 |
22.7.0 | 11,415 | 7/29/2022 |
22.5.0 | 11,301 | 5/7/2022 |
22.3.0 | 11,830 | 3/16/2022 |
22.1.0 | 11,266 | 1/20/2022 |
21.12.0 | 11,195 | 12/23/2021 |
21.11.0 | 10,711 | 11/18/2021 |
21.10.0 | 11,145 | 10/21/2021 |
21.9.0 | 11,032 | 9/16/2021 |
21.8.0 | 11,534 | 8/18/2021 |
21.7.0 | 10,999 | 7/26/2021 |
21.6.0 | 10,755 | 7/2/2021 |