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.

Kurulum
Paket nuget.org adresinde kullanılabilir ve Paket Yöneticisi Konsolu üzerinden şu komutla yüklenebilir:
NuGet\Install-Package GroupDocs.viewer-Cloud

Gereksinimler
- .NET Framework 2.0 veya .NET Standard 2.0
- NuGet
- .NET Framework 2.0 hedeflenirken System.Web
- GroupDocs Cloud kimlik bilgileri — panodaki Client ID and Client Secret
Hızlı başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Viewer Cloud kullanmak için GroupDocs.Cloud Panosu üzerinde kaydolun ve Client ID ile Client Secret değerlerini alın.
API’yi başlatma
GroupDocs.Viewer Cloud SDK for .NET kullanmaya başlamak için aşağıdaki kodu kullanın.
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);
Tam örneği Constants.cs içinde görün.
Yerel belgeyi JPEG’e dönüştürme
Bu örnek yerel bir Word belgesini bulut depolamaya yüklemeden JPEG olarak işler.
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");
Tam örneği ConvertAndDownload.cs içinde görün.
Seçili sayfaları işleme
Bu örnek bir Word belgesinin 2. ve 3. sayfalarını HTML olarak işler.
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);
Tam örneği RenderSelectedPages.cs içinde görün.
Parolayla korunan belgeyi işleme
Bu örnek parolayla korunan bir Word belgesini HTML olarak işler.
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);
Tam örneği ViewProtectedDocument.cs içinde görün.
Desteklenen dosya biçimlerini alma
viewer API’sinin kabul ettiği biçimleri alın.
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}");
}
Tam örneği GetSupportedFormats.cs içinde görün.
GitHub’daki örnekler
GroupDocs.Viewer Cloud .NET Examples deposu, şunları kapsayan çalışmaya hazır örnekler içerir:
| Category | Examples |
|---|
| İşle | HTML, PDF ve görüntü çıktısı; seçili sayfalar; filigranlar; korumalı belgeler |
| Biçime göre | CAD, e-posta, PDF, elektronik tablo, metin, Visio, sözcük işleme, arşivler, Outlook, Project |
| Info | Belge bilgileri, ekler, desteklenen biçimler |
Örnekleri çalıştırma
- örnek deposu deposunu klonlayın veya indirin
Examples/GroupDocs.Viewer.Cloud.Examples.CSharp.sln dosyasını Visual Studio 2017 veya sonraki bir sürümde açın- Çözüme sağ tıklayın ve Enable NuGet Package Restore öğesini seçin
Examples/GroupDocs.Viewer.Cloud.Examples.CSharp/RunExamples.cs dosyasını düzenleyin ve Constants.MyClientId ile Constants.MyClientSecret değerlerini ayarlayın- Derleyin ve çalıştırın
Daha fazla ayrıntı için Getting Started sayfasını ziyaret edin.

Etiketler
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