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 npmjs.com adresinde mevcuttur ve aşağıdaki komut çalıştırılarak npm ile kurulabilir:
npm install groupdocs-conversion-cloud

Gereksinimler
Bağımlılıklar
SDK aşağıdaki paketleri gerektirir:
| Package | Constraint |
|---|
| axios | 1.14.0 |
| form-data | * |
| jsonwebtoken | 9.0.1 |
| qs | 6.15.0 |
Hızlı Başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Conversion Cloud kullanmak için GroupDocs.Cloud Dashboard adresinden kaydolun ve Client ID ile Client Secret değerlerinizi alın.
API’yi başlatın
GroupDocs.Conversion Cloud SDK for Node.js kullanmaya başlamak için aşağıdaki kodu kullanın.
"use strict";
const conversion_cloud = require("groupdocs-conversion-cloud");
// Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new conversion_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const convertApi = conversion_cloud.ConvertApi.fromConfig(config);
Tam örneği RunExamples.js içinde görün.
Belge dönüştürün (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.
"use strict";
const conversion_cloud = require("groupdocs-conversion-cloud");
const fs = require("fs");
const convertApi = conversion_cloud.ConvertApi.fromKeys("YourClientId", "YourClientSecret");
(async () => {
let file = fs.readFileSync("./Resources/WordProcessing/four-pages.docx");
let request = new conversion_cloud.ConvertDocumentDirectRequest("pdf", file);
let result = await convertApi.convertDocumentDirect(request);
console.log("Document converted: " + result.length);
})();
Tam örneği ConvertToPdfDirect.js içinde görün.
Bulut depolamayı kullanarak belgeleri dönüştürün
Bu örnek bir dosyayı GroupDocs Cloud depolamasına yükler, dönüştürür ve sonucu indirir.
"use strict";
const conversion_cloud = require("groupdocs-conversion-cloud");
const fs = require("fs");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new conversion_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const convertApi = conversion_cloud.ConvertApi.fromConfig(config);
const fileApi = conversion_cloud.FileApi.fromConfig(config);
(async () => {
let file = fs.readFileSync("./myFile.docx");
await fileApi.uploadFile(new conversion_cloud.UploadFileRequest("myFile.docx", file));
let settings = new conversion_cloud.ConvertSettings();
settings.filePath = "myFile.docx";
settings.format = "pdf";
settings.outputPath = "converted";
let result = await convertApi.convertDocument(new conversion_cloud.ConvertDocumentRequest(settings));
console.log("Document converted: " + result[0].url);
let response = await fileApi.downloadFile(new conversion_cloud.DownloadFileRequest("converted/myFile.pdf", null));
console.log("Expected response type is Stream: " + response.length);
})();
Ayrıntılar için SDK README dosyasına bakın.
Belgeleri çeşitli biçimler arasında dönüştürün
Bu kod, parola korumalı bir Word belgesini çıktı seçenekleriyle PDF’ye dönüştürür.
"use strict";
const conversion_cloud = require("groupdocs-conversion-cloud");
const convertApi = conversion_cloud.ConvertApi.fromKeys("YourClientId", "YourClientSecret");
(async () => {
let settings = new conversion_cloud.ConvertSettings();
settings.filePath = "WordProcessing/password-protected.docx";
settings.format = "pdf";
settings.outputPath = "converted";
let loadOptions = new conversion_cloud.WordProcessingLoadOptions();
loadOptions.password = "password";
let convertOptions = new conversion_cloud.PdfConvertOptions();
convertOptions.centerWindow = true;
convertOptions.compressImages = false;
convertOptions.displayDocTitle = true;
convertOptions.dpi = 1024;
convertOptions.fromPage = 1;
convertOptions.imageQuality = 100;
convertOptions.password = "password";
convertOptions.unembedFonts = true;
settings.loadOptions = loadOptions;
settings.convertOptions = convertOptions;
let result = await convertApi.convertDocument(new conversion_cloud.ConvertDocumentRequest(settings));
console.log("Document converted: " + result[0].url);
})();
Tam örneği ConvertToPdf.js içinde görün.
Bir belgenin belirli sayfalarını dönüştürün
Bu örnek yalnızca 1 ve 3. sayfaları dönüştürür.
"use strict";
const conversion_cloud = require("groupdocs-conversion-cloud");
const convertApi = conversion_cloud.ConvertApi.fromKeys("YourClientId", "YourClientSecret");
(async () => {
let settings = new conversion_cloud.ConvertSettings();
settings.filePath = "WordProcessing/four-pages.docx";
settings.format = "pdf";
settings.outputPath = "converted/two-pages.pdf";
let convertOptions = new conversion_cloud.PdfConvertOptions();
convertOptions.pages = [1, 3];
settings.convertOptions = convertOptions;
let result = await convertApi.convertDocument(new conversion_cloud.ConvertDocumentRequest(settings));
console.log("Document converted: " + result[0].url);
})();
Tam örneği ConvertSpecificPages.js içinde görün.
Desteklenen dönüştürme biçimlerini alın
Desteklenen kaynak biçimden hedef biçime dönüştürmeleri alın.
"use strict";
const conversion_cloud = require("groupdocs-conversion-cloud");
const infoApi = conversion_cloud.InfoApi.fromKeys("YourClientId", "YourClientSecret");
(async () => {
let response = await infoApi.getSupportedConversionTypes(new conversion_cloud.GetSupportedConversionTypesRequest());
console.log("Formats count: " + response.length);
})();
Tam örneği GetSupportedConversions.js içinde görün.
GitHub’daki örnekler
GroupDocs.Conversion Cloud Node.js Examples deposu şunları kapsayan çalıştırmaya hazır örnekler içerir:
| Category | Examples |
|---|
| Convert | 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 |
| Common Options | Filigranlar, belirli sayfalar, ardışık sayfalar, özel yazı tipleri |
| Load Options | 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 |
Örnekleri çalıştırma
- örnek deposunu klonlayın veya indirin
Examples/RunExamples.js dosyasını düzenleyin ve clientId ile clientSecret değerlerini ayarlayınExamples dizinine gidinnpm install komutunu çalıştırınnpm update komutunu çalıştırınnpm run-script start komutunu çalıştırın
Ayrıntılar için Getting Started sayfasını ziyaret edin.

Document Conversion API | Node.js 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, Node.js | Secure API Access | Docker Support | Scalable Document Conversion | API Rate Limiting