.NET Document Viewer API to Render PDF and More

Integrate document rendering capabilities into your .NET solutions with the GroupDocs document viewing API for .NET. Accurately view, display, and render PDF, Office, OpenDocument, Images, Emails, HTML, and over 150 file formats.

Download Free TrialView All APIs

Comprehensive Document Viewer Solutions for .NET Platform

GroupDocs.Viewer for .NET is a leading API helping .NET developers build feature-rich solutions to view, display, and render a host of document and image file formats. It provides a powerful platform for developers to incorporate document rendering features into their existing solutions or create new solutions from scratch. The .NET API works across multiple OS, platforms, frameworks, and development environments, offering an unmatched cross-platform user experience. Users can seamlessly render PDF, Word, Excel, PowerPoint, RTF, OpenDocument, Visio, HTML, text, emails, projects, images, and many more files within their document viewing apps using the API.

The .NET document viewer API enables users to accurately render their files as PDF documents, images, and HTML5 files. It includes advanced document viewing and rendering features such as the ability to rotate or reorder pages, fetch the file type and other document information, obtain layers and layout lists in CAD drawings, get the project start and end dates of the Microsoft Project documents, render to responsive HTML, minify HTML and CSS files, insert text watermarks into the output file pages, replace fonts or use custom fonts while rendering documents, rasterize and convert documents to SVG, view and convert Excel files to PDF and JPG format, display programming language file content as plain text, and much more. GroupDocs.Viewer for .NET allows you to develop comprehensive desktop or web-based document viewing solutions without dependency on third-party software.

Getting Started

The System Requirements page lists the prerequisites related to the recommended OS, development environment, and framework requirements. Please visit the page before proceeding with the API installation to help you correctly set up GroupDocs.Viewer for .NET at your end and enjoy a smooth API usage experience.

GroupDocs.Viewer for .NET Installation

Please visit the downloads section to directly download the MSI installer or the DLLs of the .NET document rendering library. Alternatively, you can use the NuGet package to install the library. The command for the Visual Studio package manager console is shared below:

PM > Install-Package GroupDocs.Viewer

Seamless Rendering of Protected Word Documents and Displaying Them as PDF in .NET

GroupDocs.Viewer for .NET supports rendering password-protected files within your .NET document viewing solutions. It provides easy-to-use methods to access and display Word documents that are encrypted or secured. You can utilize this functionality using only a few lines of C# coding. Furthermore, the .NET document rendering library allows you to display Word documents as PDFs with high fidelity.

Rendering Secure Word Documents in .NET

Password-protecting or encrypting MS Word documents could help prevent unauthorized access to confidential data. However, accessing and viewing protected Word files could be a problem. GroupDocs.Viewer for .NET enables effortlessly rendering secure Word documents within your .NET document processing apps. Before displaying a document, you can check if it is encrypted. The following C# code example explains the process, so let’s get started with it.

// Set a password.
LoadOptions loadOptions = new LoadOptions();
loadOptions.Password = "000123";
// Render the protected file.
using (Viewer viewer = new Viewer("protected.docx", loadOptions))
{
    HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
    viewer.View(viewOptions);
}

Build Word to PDF Rendering Solutions in C#

Rendering a document in PDF form can make it easily accessible and remove any dependency issues. With the document viewer API for .NET, users can read Word documents locally or from a stream and render them in PDF format. It enables you to build Word to PDF viewing applications from scratch or upgrade your existing document processing solutions by integrating this functionality. The following C# code example includes the relevant steps and information.

  • Instantiate a Viewer class object and add the input file path.
  • Create a PdfViewOptions class object to get the view options.
  • Use the View method to convert DOCX to PDF and display it.
// How to view Word Documents as PDF in C#
using GroupDocs.Viewer.Options;
...
using (var viewer = new Viewer("path/input.docx"))
{
  //Get options for rendering documents in PDF format.
  var viewOptions = new PdfViewOptions("path/output.pdf");
  viewer.View(viewOptions);
}

You can view more working code examples by visiting the GroupDocs.Viewer for .NET GitHub examples page. To view or render PDF and word-processing documents, Excel spreadsheets, PowerPoint presentations, emails, images, archives, and CAD, Visio, project, or web files on the fly using your mobile devices, please feel free to check our cross-platform Free Online Document Viewer Apps.

From Documents to Visuals: Mastering Image Rendering in .NET

GroupDocs.Viewer for .NET empowers developers with image rendering capability and helps them develop feature-rich, platform-independent image processing applications targeting web or desktop interfaces. It not only supports displaying raster and vector image files such as BMP, GIF, PNG, JPG, TIFF, SVG, and other formats, including PSD, PCL, PSB, STL, DWG, DWF, DWT, DICOM, DGN, and more, but it also enables converting and rendering documents as images. With minimum C# coding, developers can build excellent image viewer solutions to load, read, and display different images and generate visual content from documents. The .NET document viewer API is all you need to handle any document or image rendering requirement.

FAQ

1. How can I view different types of documents in .NET?

Viewing documents in .NET is easy and straightforward using document viewer API for .NET. It only requires a few lines of code to display documents in desktop or web applications and .NET file viewer solutions.

2. Can I also render images of different types?

Yes, the .NET document rendering API allows viewing a host of raster, vector, and other types of image files on the .NET platform.

3. Is it safe to process documents and images using the .NET API?

Of course! You can rest assured about the security of your documents and images while processing them using the .NET API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I view or render files on Mac OS, Windows, or Linux?

Yes, the .NET document viewer API works across different OS, frameworks, and operating environments. You can use it on the platform of your choice. It does not require any additional software installation to function.

Looking for help?

Checkout our support channels for help with your questions related to GroupDocs product API features and working.

Ready to get started?

Download Free Trial View All APIs