Browse our Products

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

The package is available at npmjs.com and it can be installed via npm by executing the following command:

npm install groupdocs-parser-cloud

NPM Version NPM Downloads NPM-GroupDocsCloud


Requirements

Dependencies

The SDK requires the following packages:

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

Quick Start

Get your API credentials

To use GroupDocs.Parser Cloud, sign up at GroupDocs.Cloud Dashboard and get your Client ID and Client Secret.

Initialize the API

Use the following code to start using the GroupDocs.Parser Cloud SDK for Node.js.

"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);

See the full example in RunExamples.js.

Extract text from a document

Once initialized, use this basic example to extract text from an email document.

"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);
})();

See the full example in ExtractTextFromTheWholeDocument.js.

Extract Images from a Document

This example extracts images from a presentation.

"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);
    });
})();

See the full example in ExtractImagesFromTheWholeDocument.js.

Parse a Document by a Stored Template

This example parses a Word document with a template stored in cloud storage.

"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);
        }
    });
})();

See the full example in ParseByTemplateStoredInUserStorage.js.

Get Supported Parser Formats

Retrieve the document formats the API can parse.

"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);
})();

See the full example in GetSupportedFileTypes.js.

Examples on GitHub

The GroupDocs.Parser Cloud Node.js Examples repository includes ready-to-run examples covering:

CategoryExamples
ParseText, formatted text, images, template parsing
InfoDocument information, container items, supported formats
TemplatesCreate or update, get, and delete a template

How to run the examples

  1. Clone or download the examples repository
  2. Edit Examples/RunExamples.js and set your appSid and appKey
  3. Go to the Examples directory
  4. Run npm install
  5. Run npm update
  6. Execute npm run-script start

For more details, visit 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



 English