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 tersedia di npmjs.com dan dapat diinstal melalui npm dengan menjalankan perintah berikut:
npm install groupdocs-metadata-cloud

Persyaratan
Dependensi
SDK memerlukan paket berikut:
| Package | Constraint |
|---|
| axios | 1.13.3 |
| form-data | * |
| jsonwebtoken | 9.0.1 |
| qs | 6.14.1 |
Mulai cepat
Dapatkan kredensial API Anda
Untuk menggunakan GroupDocs.Metadata Cloud, daftar di GroupDocs.Cloud Dashboard dan dapatkan Client ID dan Client Secret Anda.
Inisialisasi API
Gunakan kode berikut untuk mulai menggunakan GroupDocs.Metadata Cloud SDK for Node.js. Konstruktor menerima Client ID, lalu Client Secret.
"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);
Lihat test_context.ts untuk detail selengkapnya.
Setelah diinisialisasi, gunakan contoh dasar ini untuk mengekstrak pohon metadata dari dokumen Word di penyimpanan cloud.
"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);
});
Lihat test_metadata_extract_api.ts untuk detail selengkapnya.
Contoh ini mengganti properti Creator pada dokumen Word.
"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);
});
Lihat test_metadata_set_api.ts untuk detail selengkapnya.
Contoh ini menghapus properti Title dari dokumen Word.
"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);
});
Lihat test_metadata_remove_api.ts untuk detail selengkapnya.
Contoh ini membaca format file dan jumlah halaman presentasi.
"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);
});
Lihat test_metadata_info_api.ts untuk detail selengkapnya.
Ambil format file yang dapat dibaca oleh API.
"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);
});
});
Lihat test_formats_api.ts untuk detail selengkapnya.
Contoh di GitHub
Repositori GroupDocs.Metadata Cloud Node.js SDK berisi SDK dan pengujian yang mencakup:
| Category | Examples |
|---|
| Metadata | Ekstrak, tambahkan, atur, dan hapus metadata, cari berdasarkan tag atau nama properti |
| Info | Informasi dokumen dan format file yang didukung |
| Storage | Operasi file, folder, dan penyimpanan |
Cara menjalankan contoh
- Klon atau unduh repositori SDK
- Edit
test/test_settings.json dan atur AppSid serta AppKey - Jalankan
npm install - Pengujian berada di
test/api/ - Jalankan
npm test
Untuk detail selengkapnya, kunjungi Getting Started.

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