Ürünlerimize göz atın

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.


Product Docs Swagger Examples Blog Support Dashboard

Kurulum

Paket npmjs.com adresinde mevcuttur ve aşağıdaki komut çalıştırılarak npm ile kurulabilir:

npm install groupdocs-comparison-cloud

NPM Version NPM Downloads NPM-GroupDocsCloud


Gereksinimler

Bağımlılıklar

SDK aşağıdaki paketleri gerektirir:

PackageConstraint
axios^1.16.1
form-data*
jsonwebtoken9.0.1
qs6.15.2

Hızlı Başlangıç

API kimlik bilgilerinizi alın

GroupDocs.Comparison 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.Comparison Cloud SDK for Node.js kullanmaya başlamak için aşağıdaki kodu kullanın.

"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");

const clientId = "YourClientId";
const clientSecret = "YourClientSecret";

const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const compareApi = comparison_cloud.CompareApi.fromConfig(config);

Tam örneği RunExamples.js içinde görün.

İki belgeyi karşılaştırın

Başlatıldıktan sonra, iki Word belgesini karşılaştırmak ve sonucu kaydetmek için bu temel örneği kullanın.

"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");

const clientId = "YourClientId";
const clientSecret = "YourClientSecret";

const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const compareApi = comparison_cloud.CompareApi.fromConfig(config);

(async () => {
    let source = new comparison_cloud.FileInfo();
    source.filePath = "source_files/word/source.docx";
    let target = new comparison_cloud.FileInfo();
    target.filePath = "target_files/word/target.docx";
    let options = new comparison_cloud.ComparisonOptions();
    options.sourceFile = source;
    options.targetFiles = [target];
    options.outputPath = "output/result.docx";

    let request = new comparison_cloud.ComparisonsRequest(options);
    let response = await compareApi.comparisons(request);
    console.log("Output file link: " + response.href);
})();

Tam örneği CompareDocuments.js içinde görün.

Değişiklik listesini alın

Bu örnek iki Word belgesi arasındaki değişiklikleri döndürür.

"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");

const clientId = "YourClientId";
const clientSecret = "YourClientSecret";

const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const compareApi = comparison_cloud.CompareApi.fromConfig(config);

(async () => {
    let source = new comparison_cloud.FileInfo();
    source.filePath = "source_files/word/source.docx";
    let target = new comparison_cloud.FileInfo();
    target.filePath = "target_files/word/target.docx";
    let options = new comparison_cloud.ComparisonOptions();
    options.sourceFile = source;
    options.targetFiles = [target];
    options.outputPath = "output/result.docx";

    let request = new comparison_cloud.PostChangesRequest(options);
    let changes = await compareApi.postChanges(request);
    console.log("Changes count: " + changes.length);
})();

Tam örneği GetListOfChanges.js içinde görün.

Belge bilgilerini alın

Bu örnek bir kaynak belgenin sayfa sayısını döndürür.

"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");

const clientId = "YourClientId";
const clientSecret = "YourClientSecret";

const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const infoApi = comparison_cloud.InfoApi.fromConfig(config);

(async () => {
    let fileInfo = new comparison_cloud.FileInfo();
    fileInfo.filePath = "source_files/word/source.docx";
    let request = new comparison_cloud.GetDocumentInfoRequest(fileInfo);
    let response = await infoApi.getDocumentInfo(request);
    console.log("GetDocumentInformation completed: " + response.pageCount);
})();

Tam örneği GetDocumentInformation.js içinde görün.

Desteklenen karşılaştırma biçimlerini alın

API’nin karşılaştırabileceği belge biçimlerini alın.

"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");

const clientId = "YourClientId";
const clientSecret = "YourClientSecret";

const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const infoApi = comparison_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.Comparison Cloud Node.js Examples deposu şunları kapsayan çalıştırmaya hazır örnekler içerir:

CategoryExamples
Basic UsageBelgeleri karşılaştırma, PDF belgelerini karşılaştırma, belge bilgileri, desteklenen biçimler, önizleme, lisans tüketimi
Advanced UsageBirden çok belge, korumalı belgeler, duyarlılık, değişiklik stilleri, değişiklik listesi, revizyonlar, kaydetme seçenekleri

Örnekleri çalıştırma

  1. örnek deposunu klonlayın veya indirin
  2. Examples/RunExamples.js dosyasını düzenleyin ve clientId ile clientSecret değerlerini ayarlayın
  3. Examples dizinine gidin
  4. npm install komutunu çalıştırın
  5. npm update komutunu çalıştırın
  6. npm run-script start komutunu çalıştırın

Ayrıntılar için Getting Started sayfasını ziyaret edin.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Comparison API | Node.js Cloud API | GroupDocs.Comparison Cloud | REST API | Document Comparison | Folder Comparison | Revision Control | Track Changes | Preview Generation | Multi-format Support | Password Protected Documents | Source Code Comparison | Change Tracking | Customization | Document Merging | Change Coordinates | Metadata Extraction | Document Security | Document Review | Secure API Access | Cloud Storage Integration | Cross-platform API



 Türkçe