REST API to build seamless document viewer .NET applications. Accurately render a wide range of file formats as images, HTML or PDF.
Start Free TrialGroupDocs.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.
Configuration
using available Client Id and Client Secret.Configuration
using instance of Configuration
.FileInfo
and set path to input file using FileInfo.FilePath
property.ViewOptions
and use FilePath
property to set instance of FileInfo
.ViewApi.CreateView()
to render input file into images and HTML.Check out GroupDocs.Viewer Cloud SDK for .NET at GitHub if you are looking for the source code to view file in the Cloud.
You can try GroupDocs.Viewer Low-Code .NET APIs without any limitations.
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.
Render and display various document formats within .NET applications.
Choose from multiple viewing options, including whole documents, specific pages, or custom page ranges.
View documents in HTML, image (JPEG, PNG, TIFF), or PDF formats.
Easily incorporate document viewing capabilities into .NET applications.
Customize viewer settings such as zoom levels, rotation, and text selection.
Extract document metadata, including properties, page count, and file size.
Add watermarks to documents and annotate them with text comments, highlights, and shapes.
Ensure secure communication between the .NET application and GroupDocs.Viewer Cloud API.
Utilize an efficient caching mechanism to optimize rendering performance.
Benefit from the high availability and reliability of GroupDocs.Viewer Cloud for .NET.
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.
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
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.
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.