C# Go SDK to Render & View Documents

REST API to build seamless document viewer Go 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 .NET
  • 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 Go 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 Go 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 C#

  • Create an instance of Configuration using available Client Id and Client Secret.
  • Create an instance of ViewApi 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 Go application to view documents?

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

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

You can try GroupDocs.Viewer Low-Code Go 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 Go 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 Go 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 Go 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 Go.

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 Go 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#

    import (
      "fmt"

      "github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-go-samples/config"
      viewer "github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-go/models"
    )

    func CreateViewExample() {

      // Create view
        opts := viewer.ViewOptions{
        FileInfo: &viewer.FileInfo{
          FilePath: "SampleFiles/sample.docx",
        },
      }
        
      response, _, err := config.Client.ViewApi.CreateView(config.Ctx, opts)
      if err != nil {
        fmt.Printf("Exception: %v\n", err)
        return
      }  
    }

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

PHPDWTPSM1TARJSVSSXFODPDIFFMLPOTJPXCCXLSMAS3AIEPUBRARWMFPLCF2TXZCPPXZDGNTAR.XZJPFMMHHDIBXPSPYONECSXLTXOTPJP2DOTSQLJ2CODSMDLESSTIFFDWGCDRGROOVY7ZXLSRBODTSCALAPLTJPMDOCXDOTMVSTPDFHPPSMWMZVSDMMPXIGSGZIPEMFPSEMLGZZIPXLTMVSTXVBSMLSTLMOBIODGJPGJPEGJ2KPPTOTGSCMAPNGCXXPPTMDJVUXLSBOSTPS1TSVMPTSVGMHTTAR.GZCGMVSSMVSDSASSHTMLBZ2VSDXCMXMSGFODSVDWDXFDOCMBOXEMLXSCRIPTOTSVTXPOTXPSTODPCSSEMZCXLAMTGZGIFRSTPOTMVDXMPPTGAHAMLLOGHPGVCFSVGZMOTTNSFRTFCSVHTMSXCASDWFPPSPPTXCMAKEPPSXNUMBERSXMLBMPJPCXLTVSXMHTMLTIFJLSPCLVSTMICOTEXTXTPSBJAVAJSONWEBPEPSDCMCHMOXPSMAKEIFCPSD1OBJVSSPROPERTIESDOCMFODGXMLERBXLSXPSDBATDNGSHYAMLDOTXASMPNGVIM

Support and Learning Resources

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

  English
7b16f17