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.‎

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.

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

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.

Support and Learning Resources

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