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 nuget.org and it can be installed via the Package Manager Console by executing the following command:

NuGet\Install-Package GroupDocs.Parser-Cloud

Version NuGet NuGet-GroupDocsCloud


Requirements

  • .NET Framework 2.0 or .NET Standard 2.0
  • NuGet
  • System.Web when targeting .NET Framework 2.0
  • GroupDocs Cloud credentials — Client ID and Client Secret from the Dashboard

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

using GroupDocs.Parser.Cloud.Sdk.Api;
using GroupDocs.Parser.Cloud.Sdk.Client;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new ParseApi(configuration);

See the full example in Common.cs.

Extract text from a document

This example extracts text from an email file in cloud storage.

using GroupDocs.Parser.Cloud.Sdk.Api;
using GroupDocs.Parser.Cloud.Sdk.Client;
using GroupDocs.Parser.Cloud.Sdk.Model;
using GroupDocs.Parser.Cloud.Sdk.Model.Requests;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new ParseApi(configuration);

var options = new TextOptions
{
    FileInfo = new FileInfo { FilePath = "email/eml/embedded-image-and-attachment.eml" }
};

var response = apiInstance.Text(new TextRequest(options));
Console.WriteLine($"Text: {response.Text}");

See the full example in ExtractTextFromTheWholeDocument.cs.

Extract Images

This example extracts images from a presentation.

using GroupDocs.Parser.Cloud.Sdk.Api;
using GroupDocs.Parser.Cloud.Sdk.Client;
using GroupDocs.Parser.Cloud.Sdk.Model;
using GroupDocs.Parser.Cloud.Sdk.Model.Requests;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new ParseApi(configuration);

var options = new ImagesOptions
{
    FileInfo = new FileInfo { FilePath = "slides/three-slides.pptx" }
};

var response = apiInstance.Images(new ImagesRequest(options));

foreach (var image in response.Images)
{
    Console.WriteLine($"Image path in storage: {image.Path}. Download url: {image.DownloadUrl}");
}

See the full example in ExtractImagesFromTheWholeDocument.cs.

Get Document Information

This example returns the page count of a password-protected Word document.

using GroupDocs.Parser.Cloud.Sdk.Api;
using GroupDocs.Parser.Cloud.Sdk.Client;
using GroupDocs.Parser.Cloud.Sdk.Model;
using GroupDocs.Parser.Cloud.Sdk.Model.Requests;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new InfoApi(configuration);

var options = new InfoOptions
{
    FileInfo = new FileInfo
    {
        FilePath = "words-processing/docx/password-protected.docx",
        Password = "password"
    }
};

var response = apiInstance.GetInfo(new GetInfoRequest(options));
Console.WriteLine("InfoResult.PageCount: " + response.PageCount);

See the full example in GetDocumentInformation.cs.

Get Supported File Types

Retrieve the formats the parser API accepts.

using GroupDocs.Parser.Cloud.Sdk.Api;
using GroupDocs.Parser.Cloud.Sdk.Client;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new InfoApi(configuration);

var response = apiInstance.GetSupportedFileFormats();

foreach (var entry in response.Formats)
{
    Console.WriteLine($"{entry.FileFormat}: {entry.Extension}");
}

See the full example in GetSupportedFileTypes.cs.

Examples on GitHub

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

CategoryExamples
TextWhole document, page range, formatted text, document inside a container
ImagesWhole document, page range, document inside a container
TemplatesParse by a template object, create, get, and delete templates
InfoDocument information, container items, supported file types

How to run the examples

  1. Clone or download the examples repository
  2. Open Examples/GroupDocs.Parser.Cloud.Examples.sln in Visual Studio 2017 or later
  3. Right-click the solution and select Enable NuGet Package Restore
  4. Edit Examples/GroupDocs.Parser.Cloud.Examples.CSharp/RunExamples.cs and set Common.MyAppSid and Common.MyAppKey
  5. Build and run

For more details, visit Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Data Extraction | REST API | GroupDocs.Parser | Text Extraction | Image Extraction | Template Parsing | Markdown Extraction | HTML Extraction | Container Files | Data Parsing | Document Information | File Management | Cloud Storage | SDKs | Cross Platform | Storage API | File Operations | Folder Operations | Security and Authentication | Document Parsing | API Integration | Data Extraction | ZIP Files | PDF | PST/OST Files | Extract Images | Document Processing | Data Extraction API | GroupDocs SDK | API Explorer | Metadata Extraction


 English