C# .NET SDK to Render & View Documents

REST API to build seamless document viewer .NET applications. Accurately render a wide range of file formats as images, HTML or PDF.

  • GroupDocs.Viewer Cloud SDK for cURL
  • GroupDocs.Viewer Cloud SDK for Java
  • GroupDocs.Viewer Cloud SDK for PHP
  • GroupDocs.Viewer Cloud SDK for Python
  • GroupDocs.Viewer Cloud SDK for Ruby
  • GroupDocs.Viewer Cloud SDK for Node.js
  • GroupDocs.Viewer Cloud SDK for Android
Start Free Trial

GroupDocs.Viewer SDK for .NET has been developed to help you quickly get started with our Document Viewer Cloud API. The SDK helps by providing a higher level of abstraction so that you don’t need to know the details pertaining to handle the HTTP requests and responses of the REST APIs.

Using the .NET SDK, you can utilize all the features of the API and can seamlessly enhance your application with the capability to render a variety of the industry-standard document formats. The SDK allows viewing a specific document in HTML, image, PDF or its original format with the flexibility to render the whole document, page by page or custom range of pages.

How to View a file on Java

  • Create an instance of Configuration using available Client Id and Client Secret.
  • Create an instance of Configuration using instance of Configuration.
  • Create an instance of FileInfo and set path to input file using FileInfo.FilePath property.
  • Create an instance of ViewOptions and use FilePath property to set instance of FileInfo.
  • Use ViewApi.CreateView() to render input file into images and HTML.

Frequently Asked Questions

I want to create my own .NET application to view documents?

Check out GroupDocs.Viewer Cloud SDK for .NET at GitHub if you are looking for the source code to view file in the Cloud.

Can I try GroupDocs.Viewer REST APIs on .NET for free?

You can try GroupDocs.Viewer Low-Code .NET APIs without any limitations.

I do not want to upload my confidential files anywhere? What are my options?

GroupDocs.Viewer Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Viewer High-code APIs which currently drive our REST APIs.

Advanced Document Viewer REST API Features

Render documents as HTML5

Render documents as Image

Rotate, reorder & watermark pages

Render documents as PDF

Render document attachments

APIs are secured and require authentication

Document Rendering

Render and display various document formats within .NET applications.

Document Viewing Options

Choose from multiple viewing options, including whole documents, specific pages, or custom page ranges.

Output Formats

View documents in HTML, image (JPEG, PNG, TIFF), or PDF formats.

Simplified Integration

Easily incorporate document viewing capabilities into .NET applications.

Viewer Customization

Customize viewer settings such as zoom levels, rotation, and text selection.

Metadata Extraction

Extract document metadata, including properties, page count, and file size.

Watermarking and Annotations

Add watermarks to documents and annotate them with text comments, highlights, and shapes.

Secure Communication

Ensure secure communication between the .NET application and GroupDocs.Viewer Cloud API.

Efficient Caching

Utilize an efficient caching mechanism to optimize rendering performance.

High Availability

Benefit from the high availability and reliability of GroupDocs.Viewer Cloud for .NET.

An Easy SDK for Developers Who Want to Save Time

Using the GroupDocs Cloud APIs is quite simple as there is nothing to install. Simply create an account at GroupDocs Cloud and get your application information. Once you have the App SID & key, you are ready to give the GroupDocs Cloud REST APIs a try. The SDKs have been developed to facilitate the developers and to let them get started with our APIs real fast.

Explore the Options for Document Presentation

The cloud-based viewer API has the ability to display different document formats quickly, with just a few lines of code. Using the SDK for .NET you can use all these features of the API and render documents as PDF, HTML or images.

Render the document with HTML view options - C#

//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
  var configuration = new Configuration(appSID, appKey);
  var apiInstance = new ViewerApi(configuration);
  var viewOptions = new ViewOptions()
  {
      FileInfo = new FileInfo()
      {
          FilePath = "documents/doc.dwf",
          Password = "",
          StorageName = "Storage Name"
      },
      RenderOptions = new HtmlOptions()
      {
          ExternalResources = true
      }
  };
  var request = new CreateViewRequest(viewOptions);
  var response = apiInstance.CreateView(request

Flexible Rendering of Documents

GroupDocs.Viewer is a powerful document viewer REST API that allows you to display various document formats in your applications. It allows document rendering for the whole document, page by page or custom range of pages.

Security and Authentication

The GroupDocs.Viewer Cloud API is secure and requires authentication. Users need to register at GroupDocs Cloud and get App SID and App Key. Authentication requests require a signature and AppSID query parameters or OAuth 2.0 authorization header.

View Documents using GroupDocs.Viewer Free App

DOCXLSXXLAMMDIBVTXPS1ERBSHPDFNSFOTGDGNHTMDXFSCRIPTODGDIFFGZIPMPXLESSCSPPTXFODGPLTPSD1CSSYAMLPOTMMMMHTHHPSM1VSXPPTMVSSMXPSVSTMSXCODSTXTMOBICHMJPCBZ2JSVSTPSJPFCCSQLHAMLPLAIMDNUMBERSPSBIGSGROOVYTGAASSCALAEMLXCMXEPUBWEBPOXPSJLSDNG7ZCMAKEMPPJPEGDJVUPPSCCDREMLPPSXIFCPCLXLTSASSRARTSVJ2CRTFGIFWMFVSDMOTPJPMXLSMBMPMLSVGPSDDWGMPTEMFHPGCGMTIFFPYJP2VDXODTPHPVSSMBOXDOCMDWTTIFOTTXLTXZIPSMLICOBATAPNGVSSXDOTDOTMASMRBMHTMLHTARXLTMOTSCXXVBDCMAS3TXZFODSXLSBWMZXMLSTLPSTJSONVDWTGZRSTCSVXZJPXEMZVIMODPPROPERTIESLOGMSGDOTXTAR.GZXMLJ2KPNGDOCXPPSMONEPOTHTMLSVGZMAKEPPTEPSDWFGZFODPPOTXTAR.XZTEXOSTCPPJAVAOBJJPGVCFSCMCF2VSDXLSVSTXVSDX

Support and Learning Resources

GroupDocs.Viewer Cloud also offers individual document rendering SDKs for other popular languages as listed below:

  English
3db7bb8