If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Instalación
El paquete está disponible en nuget.org y se puede instalar desde la consola del Administrador de paquetes con el siguiente comando:
NuGet\Install-Package GroupDocs.viewer-Cloud

Requisitos
- .NET Framework 2.0 o .NET Standard 2.0
- NuGet
- System.Web al dirigirse a .NET Framework 2.0
- Credenciales de GroupDocs Cloud — Client ID and Client Secret del panel
Inicio rápido
Obtener las credenciales de API
Para usar GroupDocs.Viewer Cloud, regístrese en el panel de GroupDocs.Cloud y obtenga el Client ID y el Client Secret.
Inicializar la API
Use el código siguiente para empezar a usar GroupDocs.Viewer Cloud SDK for .NET.
using GroupDocs.Viewer.Cloud.Sdk.Api;
using GroupDocs.Viewer.Cloud.Sdk.Client;
string MyClientId = "YourClientId";
string MyClientSecret = "YourClientSecret";
var config = new Configuration(MyClientId, MyClientSecret);
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ViewApi(config);
Vea el ejemplo completo en Constants.cs.
Convertir un documento local a JPEG
Este ejemplo representa un documento de Word local como JPEG sin cargarlo en el almacenamiento en la nube.
using System.IO;
using GroupDocs.Viewer.Cloud.Sdk.Api;
using GroupDocs.Viewer.Cloud.Sdk.Client;
using GroupDocs.Viewer.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ViewApi(config);
var response = apiInstance.ConvertAndDownload(new ConvertAndDownloadRequest("jpg", File.OpenRead("sample.docx")));
Console.WriteLine("ConvertAndDownload completed: " + response.Length + " bytes received");
Vea el ejemplo completo en ConvertAndDownload.cs.
Representar páginas seleccionadas
Este ejemplo representa las páginas 2 y 3 de un documento de Word en HTML.
using System.Collections.Generic;
using GroupDocs.Viewer.Cloud.Sdk.Api;
using GroupDocs.Viewer.Cloud.Sdk.Client;
using GroupDocs.Viewer.Cloud.Sdk.Model;
using GroupDocs.Viewer.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ViewApi(config);
var viewOptions = new ViewOptions
{
FileInfo = new FileInfo { FilePath = "SampleFiles/sample.docx" },
ViewFormat = ViewOptions.ViewFormatEnum.HTML,
RenderOptions = new RenderOptions
{
PagesToRender = new List<int?> { 2, 3 }
}
};
var response = apiInstance.CreateView(new CreateViewRequest(viewOptions));
Console.WriteLine("RenderSelectedPages completed: " + response.Pages.Count);
Vea el ejemplo completo en RenderSelectedPages.cs.
Representar un documento protegido con contraseña
Este ejemplo representa un documento de Word protegido con contraseña en HTML.
using GroupDocs.Viewer.Cloud.Sdk.Api;
using GroupDocs.Viewer.Cloud.Sdk.Client;
using GroupDocs.Viewer.Cloud.Sdk.Model;
using GroupDocs.Viewer.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ViewApi(config);
var viewOptions = new ViewOptions
{
FileInfo = new FileInfo
{
FilePath = "SampleFiles/password_protected.docx",
Password = "12345"
},
ViewFormat = ViewOptions.ViewFormatEnum.HTML
};
var response = apiInstance.CreateView(new CreateViewRequest(viewOptions));
Console.WriteLine("ViewProtectedDocument completed: " + response.Pages.Count);
Vea el ejemplo completo en ViewProtectedDocument.cs.
Recupere los formatos que acepta la API de viewer.
using System.Linq;
using GroupDocs.Viewer.Cloud.Sdk.Api;
using GroupDocs.Viewer.Cloud.Sdk.Client;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new InfoApi(config);
var response = apiInstance.GetSupportedFileFormats();
foreach (var entry in response.Formats.Take(5))
{
Console.WriteLine($"{entry.FileFormat}: {entry.Extension}");
}
Vea el ejemplo completo en GetSupportedFormats.cs.
Ejemplos en GitHub
El repositorio GroupDocs.Viewer Cloud .NET Examples incluye ejemplos listos para ejecutar sobre:
| Category | Examples |
|---|
| Representar | Salida HTML, PDF e imagen; páginas seleccionadas; marcas de agua; documentos protegidos |
| Por formato | CAD, correo electrónico, PDF, hoja de cálculo, texto, Visio, procesamiento de texto, archivos comprimidos, Outlook, Project |
| Info | Información del documento, datos adjuntos, formatos admitidos |
Cómo ejecutar los ejemplos
- Clone o descargue el repositorio de ejemplos
- Abra
Examples/GroupDocs.Viewer.Cloud.Examples.CSharp.sln en Visual Studio 2017 o posterior - Haga clic con el botón derecho en la solución y seleccione Enable NuGet Package Restore
- Edite
Examples/GroupDocs.Viewer.Cloud.Examples.CSharp/RunExamples.cs y establezca Constants.MyClientId y Constants.MyClientSecret - Compile y ejecute
Para obtener más detalles, visite Getting Started.

Etiquetas
Document Rendering API | .NET Cloud API | GroupDocs.Viewer Cloud | REST API | HTML Rendering | PDF Conversion | Image Rendering | Document Viewing | Multi-Page Rendering | Document Streaming | CAD Rendering | E-Mail Message Rendering | Visio Rendering | MS Project Rendering | Outlook Data Rendering | Spreadsheet Rendering | Word Processing Rendering | Custom View Options