Blader door onze producten

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

Installation

Das Paket ist verfügbar bei npmjs.com und kann über npm mit folgendem Befehl installiert werden:

npm install groupdocs-parser-cloud

NPM Version NPM Downloads NPM-GroupDocsCloud


Anforderungen

Abhängigkeiten

Das SDK benötigt die folgenden Pakete:

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

Schnellstart

API-Anmeldeinformationen erhalten

Um GroupDocs.Parser Cloud zu nutzen, registrieren Sie sich im GroupDocs.Cloud Dashboard und erhalten Sie Ihre Client ID und Client Secret.

API initialisieren

Verwenden Sie den folgenden Code, um das GroupDocs.Parser Cloud SDK for Node.js zu nutzen.

"use strict";
const parser_cloud = require("groupdocs-parser-cloud");

const appSid = "YourClientId";
const appKey = "YourClientSecret";

const config = new parser_cloud.Configuration(appSid, appKey);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const parseApi = parser_cloud.ParseApi.fromConfig(config);

Das vollständige Beispiel finden Sie in RunExamples.js.

Text aus einem Dokument extrahieren

Nach der Initialisierung extrahieren Sie mit diesem grundlegenden Beispiel Text aus einer E-Mail.

"use strict";
const parser_cloud = require("groupdocs-parser-cloud");

const appSid = "YourClientId";
const appKey = "YourClientSecret";

const config = new parser_cloud.Configuration(appSid, appKey);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const parseApi = parser_cloud.ParseApi.fromConfig(config);

(async () => {
    let fileInfo = new parser_cloud.FileInfo();
    fileInfo.filePath = "email/eml/embedded-image-and-attachment.eml";
    let options = new parser_cloud.TextOptions();
    options.fileInfo = fileInfo;

    let request = new parser_cloud.TextRequest(options);
    let response = await parseApi.text(request);
    console.log("Text: " + response.text);
})();

Das vollständige Beispiel finden Sie in ExtractTextFromTheWholeDocument.js.

Bilder aus einem Dokument extrahieren

Dieses Beispiel extrahiert Bilder aus einer Präsentation.

"use strict";
const parser_cloud = require("groupdocs-parser-cloud");

const appSid = "YourClientId";
const appKey = "YourClientSecret";

const config = new parser_cloud.Configuration(appSid, appKey);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const parseApi = parser_cloud.ParseApi.fromConfig(config);

(async () => {
    let fileInfo = new parser_cloud.FileInfo();
    fileInfo.filePath = "slides/three-slides.pptx";
    let options = new parser_cloud.ImagesOptions();
    options.fileInfo = fileInfo;

    let request = new parser_cloud.ImagesRequest(options);
    let response = await parseApi.images(request);
    response.images.forEach(image => {
        console.log("Image path " + image.path + ". Download url: " + image.downloadUrl);
    });
})();

Das vollständige Beispiel finden Sie in ExtractImagesFromTheWholeDocument.js.

Dokument mit einer gespeicherten Vorlage analysieren

Dieses Beispiel analysiert ein Word-Dokument mit einer im Cloud-Speicher abgelegten Vorlage.

"use strict";
const parser_cloud = require("groupdocs-parser-cloud");

const appSid = "YourClientId";
const appKey = "YourClientSecret";

const config = new parser_cloud.Configuration(appSid, appKey);
config.apiBaseUrl = "https://api.groupdocs.cloud";

const parseApi = parser_cloud.ParseApi.fromConfig(config);

(async () => {
    let fileInfo = new parser_cloud.FileInfo();
    fileInfo.filePath = "words-processing/docx/companies.docx";
    let options = new parser_cloud.ParseOptions();
    options.fileInfo = fileInfo;
    options.templatePath = "templates/companies.json";

    let request = new parser_cloud.ParseRequest(options);
    let response = await parseApi.parse(request);
    response.fieldsData.forEach(data => {
        if (data.pageArea.pageTextArea != null) {
            console.log("Field name: " + data.name + ". Text :" + data.pageArea.pageTextArea.text);
        }
    });
})();

Das vollständige Beispiel finden Sie in ParseByTemplateStoredInUserStorage.js.

Unterstützte Parser-Formate abrufen

Rufen Sie die Dokumentformate ab, die die API analysieren kann.

"use strict";
const parser_cloud = require("groupdocs-parser-cloud");

const appSid = "YourClientId";
const appKey = "YourClientSecret";

const config = new parser_cloud.Configuration(appSid, appKey);
config.apiBaseUrl = "https://api.groupdocs.cloud";

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

(async () => {
    let response = await infoApi.getSupportedFileFormats();
    console.log("Formats count: " + response.formats.length);
})();

Das vollständige Beispiel finden Sie in GetSupportedFileTypes.js.

Beispiele auf GitHub

Das Repository GroupDocs.Parser Cloud Node.js Examples enthält sofort ausführbare Beispiele für:

CategoryExamples
ParseText, formatierter Text, Bilder, Vorlagenanalyse
InfoDokumentinformationen, Container-Elemente, unterstützte Formate
TemplatesVorlage erstellen oder aktualisieren, abrufen und löschen

So führen Sie die Beispiele aus

  1. Klonen oder laden Sie das Beispiel-Repository herunter
  2. Bearbeiten Sie Examples/RunExamples.js und setzen Sie appSid und appKey
  3. Wechseln Sie in das Verzeichnis Examples
  4. Führen Sie npm install aus
  5. Führen Sie npm update aus
  6. Führen Sie npm run-script start aus

Weitere Details finden Sie unter Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Data Extraction | Node.js Cloud API | GroupDocs.Parser Cloud | REST API | Text Extraction | Image Extraction | Template Parsing | Data Parsing | Document Information | Container Files | Cloud Storage Integration | File Operations | Folder Operations | Secure API Access | Document Parsing | Metadata Extraction | PDF Parsing | ZIP Files | PST/OST Files | Cross-platform API | Document Processing | Data Extraction API



 Deutsch