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.

Instalasi
Paket ini tersedia di nuget.org dan dapat diinstal melalui Package Manager Console dengan perintah berikut:
NuGet\Install-Package GroupDocs.editor-Cloud

Persyaratan
- .NET Framework 2.0 atau .NET Standard 2.0
- NuGet
- System.Web saat menargetkan .NET Framework 2.0
- Kredensial GroupDocs Cloud — Client ID and Client Secret dari Dasbor
Mulai cepat
Dapatkan kredensial API Anda
Untuk menggunakan GroupDocs.Editor Cloud, daftar di Dasbor GroupDocs.Cloud dan dapatkan Client ID serta Client Secret.
Inisialisasi API
Gunakan kode berikut untuk mulai menggunakan GroupDocs.Editor Cloud SDK for .NET.
using GroupDocs.Editor.Cloud.Sdk.Api;
using GroupDocs.Editor.Cloud.Sdk.Client;
string MyClientId = "YourClientId";
string MyClientSecret = "YourClientSecret";
var config = new Configuration(MyClientId, MyClientSecret);
var apiInstance = new EditApi(config);
Lihat contoh lengkap di Common.cs.
Mengedit dokumen Word
Contoh ini memuat dokumen Word yang dilindungi kata sandi, mengganti teks di HTML, dan menyimpan file DOCX.
using System.IO;
using System.Text;
using GroupDocs.Editor.Cloud.Sdk.Api;
using GroupDocs.Editor.Cloud.Sdk.Client;
using GroupDocs.Editor.Cloud.Sdk.Model;
using GroupDocs.Editor.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Editor.Cloud.Sdk.Model.FileInfo;
var config = new Configuration("YourClientId", "YourClientSecret");
var editApi = new EditApi(config);
var fileApi = new FileApi(config);
var loadOptions = new WordProcessingLoadOptions
{
FileInfo = new FileInfo
{
FilePath = "WordProcessing/password-protected.docx",
Password = "password"
},
OutputPath = "output"
};
var loadResult = editApi.Load(new LoadRequest(loadOptions));
var stream = fileApi.DownloadFile(new DownloadFileRequest(loadResult.HtmlPath));
var htmlString = new StreamReader(stream, Encoding.UTF8).ReadToEnd();
htmlString = htmlString.Replace("Sample test text", "Hello world");
fileApi.UploadFile(new UploadFileRequest(loadResult.HtmlPath, new MemoryStream(Encoding.UTF8.GetBytes(htmlString))));
var saveOptions = new WordProcessingSaveOptions
{
FileInfo = loadOptions.FileInfo,
OutputPath = "output/edited.docx",
HtmlPath = loadResult.HtmlPath,
ResourcesPath = loadResult.ResourcesPath
};
var saveResult = editApi.Save(new SaveRequest(saveOptions));
Console.WriteLine("Document edited: " + saveResult.Path);
Lihat contoh lengkap di EditWordProcessingDocument.cs.
Mengedit lembar bentang
Contoh ini memuat lembar kerja pertama, mengganti teks, dan menyimpan file XLSX.
using System.IO;
using System.Text;
using GroupDocs.Editor.Cloud.Sdk.Api;
using GroupDocs.Editor.Cloud.Sdk.Client;
using GroupDocs.Editor.Cloud.Sdk.Model;
using GroupDocs.Editor.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Editor.Cloud.Sdk.Model.FileInfo;
var config = new Configuration("YourClientId", "YourClientSecret");
var editApi = new EditApi(config);
var fileApi = new FileApi(config);
var loadOptions = new SpreadsheetLoadOptions
{
FileInfo = new FileInfo { FilePath = "Spreadsheet/four-sheets.xlsx" },
OutputPath = "output",
WorksheetIndex = 0
};
var loadResult = editApi.Load(new LoadRequest(loadOptions));
var stream = fileApi.DownloadFile(new DownloadFileRequest(loadResult.HtmlPath));
var htmlString = new StreamReader(stream, Encoding.UTF8).ReadToEnd();
htmlString = htmlString.Replace("This is sample sheet", "This is sample sheep");
fileApi.UploadFile(new UploadFileRequest(loadResult.HtmlPath, new MemoryStream(Encoding.UTF8.GetBytes(htmlString))));
var saveOptions = new SpreadsheetSaveOptions
{
FileInfo = loadOptions.FileInfo,
OutputPath = "output/edited.xlsx",
HtmlPath = loadResult.HtmlPath,
ResourcesPath = loadResult.ResourcesPath
};
var saveResult = editApi.Save(new SaveRequest(saveOptions));
Console.WriteLine("Document edited: " + saveResult.Path);
Lihat contoh lengkap di EditSpreadsheetDocument.cs.
Contoh ini mengembalikan jumlah halaman dokumen Word yang dilindungi kata sandi.
using GroupDocs.Editor.Cloud.Sdk.Api;
using GroupDocs.Editor.Cloud.Sdk.Client;
using GroupDocs.Editor.Cloud.Sdk.Model;
using GroupDocs.Editor.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new InfoApi(config);
var request = new GetInfoRequest(new FileInfo
{
FilePath = "WordProcessing/password-protected.docx",
Password = "password"
});
var response = apiInstance.GetInfo(request);
Console.WriteLine("InfoResult.Pages.Count: " + response.PageCount);
Lihat contoh lengkap di GetDocumentInformation.cs.
Mendapatkan jenis file yang didukung
Ambil format yang diterima API editor.
using GroupDocs.Editor.Cloud.Sdk.Api;
using GroupDocs.Editor.Cloud.Sdk.Client;
var config = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new InfoApi(config);
var response = apiInstance.GetSupportedFileFormats();
foreach (var entry in response.Formats)
{
Console.WriteLine($"{entry.FileFormat}: {string.Join(",", entry.Extension)}");
}
Lihat contoh lengkap di GetSupportedFileTypes.cs.
Contoh di GitHub
Repositori GroupDocs.Editor Cloud .NET Examples berisi contoh siap jalan yang mencakup:
| Category | Examples |
|---|
| Edit | Pemrosesan kata, lembar bentang, presentasi, teks berpembatas, teks biasa |
| Info | Informasi dokumen, jenis file yang didukung, konsumsi lisensi |
Cara menjalankan contoh
- Klon atau unduh repositori contoh
- Buka
Examples/GroupDocs.Editor.Cloud.Examples.CSharp.sln di Visual Studio 2017 atau yang lebih baru - Klik kanan solusi dan pilih Enable NuGet Package Restore
- Edit
Examples/GroupDocs.Editor.Cloud.Examples.CSharp/RunExamples.cs lalu atur Common.MyClientId dan Common.MyClientSecret - Bangun dan jalankan
Untuk detail selengkapnya, kunjungi Getting Started.

Tag
Document Editing API | .NET Cloud API | GroupDocs.Editor Cloud | REST API | Word Processing Formats | Spreadsheet Formats | Presentation Formats | Text Formats | CSV Files | DOCX Documents | XLSX Documents | PPTX Presentations | Password-Protected Files | Cloud Storage Integration | Document Info Retrieval | File Operations | API Explorer | Multi-Platform Support | SDK Support | Secure API Access