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-viewer-cloud

Gereksinimler
Bağımlılıklar
SDK aşağıdaki paketleri gerektirir:
| Package | Constraint |
|---|
| axios | 1.8.4 |
| form-data | * |
| jsonwebtoken | 9.0.1 |
| qs | 6.11.2 |
Hızlı Başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Viewer 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.Viewer Cloud SDK for Node.js kullanmaya başlamak için aşağıdaki kodu kullanın.
"use strict";
const viewer_cloud = require("groupdocs-viewer-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new viewer_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const viewApi = viewer_cloud.ViewApi.fromConfig(config);
Tam örneği RunExamples.js içinde görün.
Belgeyi dönüştürün ve indirin
Başlatıldıktan sonra, yerel bir belgeyi bulut depolamaya yüklemeden JPG olarak işlemek için bu temel örneği kullanın.
"use strict";
const viewer_cloud = require("groupdocs-viewer-cloud");
const fs = require("fs");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new viewer_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const viewApi = viewer_cloud.ViewApi.fromConfig(config);
(async () => {
let format = "jpg";
let filebuf = fs.readFileSync("./Resources/SampleFiles/sample.docx");
let request = new viewer_cloud.ConvertAndDownloadRequest(format, filebuf);
let response = await viewApi.convertAndDownload(request);
console.log("ConvertAndDownload completed: " + response.length);
})();
Tam örneği ConvertAndDownload.js içinde görün.
Belgeyi duyarlı HTML olarak işleyin
Bu örnek duyarlı bir düzene sahip bir HTML görünümü oluşturur.
"use strict";
const viewer_cloud = require("groupdocs-viewer-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new viewer_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const viewApi = viewer_cloud.ViewApi.fromConfig(config);
(async () => {
let fileInfo = new viewer_cloud.FileInfo();
fileInfo.filePath = "SampleFiles/sample.docx";
let viewOptions = new viewer_cloud.ViewOptions();
viewOptions.fileInfo = fileInfo;
viewOptions.viewFormat = viewer_cloud.ViewOptions.ViewFormatEnum.HTML;
viewOptions.renderOptions = new viewer_cloud.HtmlOptions();
viewOptions.renderOptions.isResponsive = true;
let request = new viewer_cloud.CreateViewRequest(viewOptions);
let response = await viewApi.createView(request);
console.log("HtmlViewerResponsiveLayout completed: " + response.pages.length);
})();
Tam örneği HtmlViewerResponsiveLayout.js içinde görün.
Seçilen sayfaları işleyin
Bu örnek bir belgenin 2 ve 3. sayfalarını HTML olarak işler.
"use strict";
const viewer_cloud = require("groupdocs-viewer-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new viewer_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const viewApi = viewer_cloud.ViewApi.fromConfig(config);
(async () => {
let fileInfo = new viewer_cloud.FileInfo();
fileInfo.filePath = "SampleFiles/sample.docx";
let viewOptions = new viewer_cloud.ViewOptions();
viewOptions.fileInfo = fileInfo;
viewOptions.viewFormat = viewer_cloud.ViewOptions.ViewFormatEnum.HTML;
viewOptions.renderOptions = new viewer_cloud.HtmlOptions();
viewOptions.renderOptions.pagesToRender = [2, 3];
let request = new viewer_cloud.CreateViewRequest(viewOptions);
let response = await viewApi.createView(request);
console.log("RenderSelectedPages completed: " + response.pages.length);
})();
Tam örneği RenderSelectedPages.js içinde görün.
Parola korumalı bir belgeyi görüntüleyin
Bu örnek parola korumalı bir Word belgesini HTML olarak işler.
"use strict";
const viewer_cloud = require("groupdocs-viewer-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new viewer_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const viewApi = viewer_cloud.ViewApi.fromConfig(config);
(async () => {
let fileInfo = new viewer_cloud.FileInfo();
fileInfo.filePath = "SampleFiles/password_protected.docx";
fileInfo.password = "12345";
let viewOptions = new viewer_cloud.ViewOptions();
viewOptions.fileInfo = fileInfo;
viewOptions.viewFormat = viewer_cloud.ViewOptions.ViewFormatEnum.HTML;
let request = new viewer_cloud.CreateViewRequest(viewOptions);
let response = await viewApi.createView(request);
console.log("ViewProtectedDocument completed: " + response.pages.length);
})();
Tam örneği ViewProtectedDocument.js içinde görün.
Desteklenen görüntüleme biçimlerini alın
API’nin işleyebileceği belge biçimlerini alın.
"use strict";
const viewer_cloud = require("groupdocs-viewer-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new viewer_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const infoApi = viewer_cloud.InfoApi.fromConfig(config);
(async () => {
let response = await infoApi.getSupportedFileFormats();
console.log("Formats count: " + response.formats.length);
})();
Tam örneği GetSupportedFormats.js içinde görün.
GitHub’daki örnekler
GroupDocs.Viewer Cloud Node.js Examples deposu şunları kapsayan çalıştırmaya hazır örnekler içerir:
| Category | Examples |
|---|
| Basic Usage | Dönüştürme ve indirme, HTML görüntüleyici, görüntü görüntüleyici, PDF görüntüleyici, belge bilgileri, ekler, desteklenen biçimler |
| Rendering Options | Seçilen sayfalar, ardışık sayfalar, filigranlar, notlar, yorumlar, özel yazı tipleri |
| Loading Options | Parola korumalı belgeler, kodlama |
| File Types | Arşiv, CAD, e-posta, PDF, elektronik tablo, Visio, Word, Outlook ve proje dosyaları |
Ö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 Rendering API | Node.js 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 | Responsive HTML | Attachment Rendering | Secure API Access | Cloud Storage Integration