Ü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.


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

NPM Version NPM Downloads NPM-GroupDocsCloud


Gereksinimler

Bağımlılıklar

SDK aşağıdaki paketleri gerektirir:

PackageConstraint
axios1.13.3
form-data*
jsonwebtoken9.0.1
qs6.14.1

Hızlı Başlangıç

API kimlik bilgilerinizi alın

GroupDocs.Metadata 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.Metadata Cloud SDK for Node.js kullanmaya başlamak için aşağıdaki kodu kullanın. Oluşturucu önce Client ID, ardından Client Secret alır.

"use strict";
const metadata_cloud = require("groupdocs-metadata-cloud");

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

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

const metadataApi = metadata_cloud.MetadataApi.fromConfig(config);

Ayrıntılar için test_context.ts dosyasına bakın.

Meta verileri çıkarın

Başlatıldıktan sonra, bulut depolamadaki bir Word belgesinden meta veri ağacını çıkarmak için bu temel örneği kullanın.

"use strict";
const metadata_cloud = require("groupdocs-metadata-cloud");

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

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

const metadataApi = metadata_cloud.MetadataApi.fromConfig(config);

const extractOptions = new metadata_cloud.ExtractOptions();
extractOptions.fileInfo = new metadata_cloud.FileInfo();
extractOptions.fileInfo.filePath = "documents/input.docx";
const request = new metadata_cloud.ExtractRequest(extractOptions);

metadataApi.extract(request).then((result) => {
    console.log(result.metadataTree.innerPackages.length);
});

Ayrıntılar için test_metadata_extract_api.ts dosyasına bakın.

Bir meta veri özelliği ayarlayın

Bu örnek bir Word belgesindeki Creator özelliğini değiştirir.

"use strict";
const metadata_cloud = require("groupdocs-metadata-cloud");

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

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

const metadataApi = metadata_cloud.MetadataApi.fromConfig(config);

const options = new metadata_cloud.SetOptions({
    fileInfo: new metadata_cloud.FileInfo(),
    properties: [
        new metadata_cloud.SetProperty({
            newValue: "NewAuthor",
            type: "String",
            searchCriteria: new metadata_cloud.SearchCriteria({
                tagOptions: new metadata_cloud.TagOptions({
                    exactTag: new metadata_cloud.Tag({
                        name: "Creator",
                        category: "Person"
                    })
                })
            })
        })
    ]
});
options.fileInfo.filePath = "documents/input.docx";
const request = new metadata_cloud.SetRequest(options);

metadataApi.set(request).then((result) => {
    console.log(result.setCount);
});

Ayrıntılar için test_metadata_set_api.ts dosyasına bakın.

Etikete göre meta verileri kaldırın

Bu örnek bir Word belgesinden Title özelliğini kaldırır.

"use strict";
const metadata_cloud = require("groupdocs-metadata-cloud");

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

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

const metadataApi = metadata_cloud.MetadataApi.fromConfig(config);

const options = new metadata_cloud.RemoveOptions({
    fileInfo: new metadata_cloud.FileInfo(),
    searchCriteria: new metadata_cloud.SearchCriteria({
        tagOptions: new metadata_cloud.TagOptions({
            exactTag: new metadata_cloud.Tag({
                name: "Title",
                category: "Content"
            })
        })
    })
});
options.fileInfo.filePath = "documents/input.docx";
const request = new metadata_cloud.RemoveRequest(options);

metadataApi.remove(request).then((result) => {
    console.log(result.removedCount);
});

Ayrıntılar için test_metadata_remove_api.ts dosyasına bakın.

Belge bilgilerini alın

Bu örnek bir sununun dosya biçimini ve sayfa sayısını okur.

"use strict";
const metadata_cloud = require("groupdocs-metadata-cloud");

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

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

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

const infoOptions = new metadata_cloud.InfoOptions();
infoOptions.fileInfo = new metadata_cloud.FileInfo();
infoOptions.fileInfo.filePath = "documents/input.pptx";
const request = new metadata_cloud.GetInfoRequest(infoOptions);

infoApi.getInfo(request).then((result) => {
    console.log(result.pageCount);
});

Ayrıntılar için test_metadata_info_api.ts dosyasına bakın.

Desteklenen meta veri biçimlerini alın

API’nin okuyabileceği dosya biçimlerini alın.

"use strict";
const metadata_cloud = require("groupdocs-metadata-cloud");

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

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

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

infoApi.getSupportedFileFormats().then((result) => {
    result.formats.forEach(function (format) {
        console.log(format.fileFormat);
    });
});

Ayrıntılar için test_formats_api.ts dosyasına bakın.

GitHub’daki örnekler

GroupDocs.Metadata Cloud Node.js SDK deposu şunları kapsayan SDK’yı ve testleri içerir:

CategoryExamples
MetadataMeta verileri çıkarma, ekleme, ayarlama ve kaldırma, etikete veya özellik adına göre arama
InfoBelge bilgileri ve desteklenen dosya biçimleri
StorageDosya, klasör ve depolama işlemleri

Örnekleri çalıştırma

  1. SDK deposunu klonlayın veya indirin
  2. test/test_settings.json dosyasını düzenleyin ve AppSid ile AppKey değerlerini ayarlayın
  3. npm install komutunu çalıştırın
  4. Testler test/api/ içindedir
  5. npm test komutunu çalıştırın

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


Docs Swagger Examples Blog Support Dashboard


Tags

Document Metadata API | Node.js Cloud API | GroupDocs.Metadata Cloud | REST API | Metadata Extraction | Metadata Management | Metadata Filtering | Metadata Searching | Metadata Preservation | Cloud Storage Integration | File Management | Folder Management | File Versioning | Secure API Access | Cross-Platform API | PDF Metadata | Image Metadata | Video Metadata | Audio Metadata | Document Metadata Editing | MIT License



 Türkçe