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.Conversion-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.Conversion Cloud kullanmak için GroupDocs.Cloud Panosu üzerinde kaydolun ve Client ID ile Client Secret değerlerini alın.
API’yi başlatma
GroupDocs.Conversion Cloud SDK for .NET kullanmaya başlamak için aşağıdaki kodu kullanın.
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Client;
// Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
string MyClientId = "YourClientId";
string MyClientSecret = "YourClientSecret";
var config = new Configuration(MyClientId, MyClientSecret);
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ConvertApi(config);
Tam örneği Constants.cs içinde görün.
Belge dönüştürme (doğrudan, bulut depolama olmadan)
Başlatıldıktan sonra yerel bir belgeyi dönüştürmek ve sonucu doğrudan almak için bu temel örneği kullanın.
using System;
using System.IO;
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Client;
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ConvertApi(config);
var fileStream = File.Open("four-pages.docx", FileMode.Open);
var request = new ConvertDocumentDirectRequest("pdf", fileStream);
var response = apiInstance.ConvertDocumentDirect(request);
Console.WriteLine("Document converted successfully: " + response.Length);
Tam örneği ConvertToPdfDirect.cs içinde görün.
Bulut depolamayı kullanarak belgeleri dönüştürme
Bu örnek bir dosyayı GroupDocs Cloud depolamasına yükler, dönüştürür ve sonucu indirir.
using System;
using System.IO;
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Client;
using GroupDocs.Conversion.Cloud.Sdk.Model;
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;
var configuration = new Configuration("YourClientId", "YourClientSecret");
var fileApi = new FileApi(configuration);
var convertApi = new ConvertApi(configuration);
var fileStream = File.Open("myFile.docx", FileMode.Open);
fileApi.UploadFile(new UploadFileRequest("myFile.docx", fileStream));
var settings = new ConvertSettings
{
FilePath = "myFile.docx",
Format = "pdf",
OutputPath = "converted"
};
convertApi.ConvertDocument(new ConvertDocumentRequest(settings));
var response = fileApi.DownloadFile(new DownloadFileRequest("converted/myFile.pdf"));
Console.WriteLine("Expected response type is Stream: " + response.Length.ToString());
Daha fazla ayrıntı için SDK README bölümüne bakın.
Belgeleri çeşitli biçimler arasında dönüştürme
Bu kod, parolayla korunan bir Word belgesini çıktı seçenekleriyle PDF’ye dönüştürür.
using System;
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Client;
using GroupDocs.Conversion.Cloud.Sdk.Model;
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ConvertApi(config);
var settings = new ConvertSettings
{
FilePath = "WordProcessing/password-protected.docx",
Format = "pdf",
LoadOptions = new WordProcessingLoadOptions { Password = "password" },
ConvertOptions = new PdfConvertOptions
{
CenterWindow = true,
CompressImages = false,
DisplayDocTitle = true,
Dpi = 1024,
FromPage = 1,
ImageQuality = 100,
Password = "password",
UnembedFonts = true
},
OutputPath = "converted"
};
var response = apiInstance.ConvertDocument(new ConvertDocumentRequest(settings));
Console.WriteLine("Document converted successfully: " + response[0].Url);
Tam örneği ConvertToPdf.cs içinde görün.
Bir belgenin belirli sayfalarını dönüştürme
Bu örnek yalnızca 1. ve 3. sayfaları dönüştürür.
using System;
using System.Collections.Generic;
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Client;
using GroupDocs.Conversion.Cloud.Sdk.Model;
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new ConvertApi(config);
var settings = new ConvertSettings
{
FilePath = "WordProcessing/four-pages.docx",
Format = "pdf",
ConvertOptions = new PdfConvertOptions
{
Pages = new List<int?> { 1, 3 }
},
OutputPath = "converted/two-pages.pdf"
};
var response = apiInstance.ConvertDocument(new ConvertDocumentRequest(settings));
Console.WriteLine("Document converted successfully: " + response[0].Url);
Tam örneği ConvertSpecificPages .cs içinde görün.
Desteklenen dönüştürme biçimlerini alma
Desteklenen kaynak-hedef dönüştürmelerini alın.
using System;
using System.Linq;
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Client;
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new InfoApi(config);
var response = apiInstance.GetSupportedConversionTypes(new GetSupportedConversionTypesRequest());
foreach (var entry in response.Take(2))
{
Console.WriteLine($"{entry.SourceFormat}: {string.Join(",", entry.TargetFormats)}");
}
Tam örneği GetSupportedConversions.cs içinde görün.
GitHub’daki örnekler
GroupDocs.Conversion Cloud .NET Examples deposu, şunları kapsayan çalışmaya hazır örnekler içerir:
| Category | Examples |
|---|
| Dönüştür | PDF, HTML, görüntü, sunu, elektronik tablo, sözcük işleme; doğrudan dönüştürme; zaman uyumsuz dönüştürme |
| Ortak seçenekler | Filigranlar, belirli sayfalar, ardışık sayfalar, özel yazı tipleri |
| Yükleme seçenekleri | CAD, CSV, e-posta, HTML, OneNote, PDF, sunu, elektronik tablo, metin, sözcük işleme |
| Info | Desteklenen dönüştürmeler, belge bilgileri, lisans bilgileri, lisans tüketimi |
Örnekleri çalıştırma
- örnek deposu deposunu klonlayın veya indirin
Examples/GroupDocs.Conversion.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.Conversion.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 Conversion API | .NET Cloud API | GroupDocs.Conversion Cloud | REST API | Document Conversion | Auto-detect Formats | Watermarking API | Multi-Format Output | Batch Document Conversion | PDF Conversion | Custom Conversion Options | Page-by-Page Conversion | Font Replacement | OCR Support | Metadata Extraction | Document Merge | Storage API | Document Information API | Document Load Options | Multi-Language Support | Cloud Storage Integration | SDKs for .NET, Java, Python | Secure API Access | Docker Support | Scalable Document Conversion | API Rate Limiting