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.

Docs Swagger Examples Blog Support Release Notes Dashboard

Installation

The package is available at nuget.org and it can be installed via package manager console by executing following command:

PM> NuGet\Install-Package GroupDocs.Parser-Cloud

Version NuGet NuGet-GroupDocsCloud


Get Started

You do not need to install anything to get started with GroupDocs.Parser Cloud SDK for .Net. Just create an account at GroupDocs for Cloud and get your application information.

Simply execute Install-Package GroupDocs.Parser-Cloud from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Parser assembly in your project. If you already have GroupDocs.Parser Cloud SDK for .Net and want to upgrade it, please execute Update-Package GroupDocs.Parser-Cloud to get the latest version.

Please check the GitHub Repository for common usage scenarios.

GroupDocs.Parser Cloud API Code Samples

These code samples demonstrate various parsing capabilities of GroupDocs.Parser Cloud, including extracting text, extracting images, and parsing documents by template.

Extracting Text from a Document

Learn how to extract text from a document using the GroupDocs.Parser Cloud API. This example demonstrates the text extraction process in C#.

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

namespace GroupDocs.Parser.Cloud.Sdk.Examples
{
    class Extract_Text_From_Document
    {
        public static void Run()
        {
            // Get your AppSID and AppKey from https://dashboard.groupdocs.cloud/ (free registration required)
            var configuration = new Configuration
            {
                AppSid = "YOUR_APP_SID",
                AppKey = "YOUR_APP_KEY"
            };

            // Initialize the Parser API instance
            var apiInstance = new ParserApi(configuration);

            try
            {
                // Define the document to parse
                var fileInfo = new FileInfo { Folder = "path/to/folder", Name = "document.docx" };

                // Create a text extraction request
                var request = new ExtractTextRequest(fileInfo);

                // Extract text from the document
                var response = apiInstance.ExtractText(request);

                // Output the extracted text to the console
                Console.WriteLine("Extracted Text: " + response.Text);
            }
            catch (Exception e)
            {
                // Handle any exceptions that occur during the API call
                Console.WriteLine("Exception when calling ParserApi.ExtractText: " + e.Message);
            }
        }
    }
}

Extracting Images from a Document

Learn how to extract images embedded within a document using the GroupDocs.Parser Cloud API. This example illustrates the process in C#.

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

namespace GroupDocs.Parser.Cloud.Sdk.Examples
{
    class Extract_Images_From_Document
    {
        public static void Run()
        {
            // Get your AppSID and AppKey from https://dashboard.groupdocs.cloud/ (free registration required)
            var configuration = new Configuration
            {
                AppSid = "YOUR_APP_SID",
                AppKey = "YOUR_APP_KEY"
            };

            // Initialize the Parser API instance
            var apiInstance = new ParserApi(configuration);

            try
            {
                // Define the document to parse
                var fileInfo = new FileInfo { Folder = "path/to/folder", Name = "document.pdf" };

                // Create an image extraction request
                var request = new ExtractImagesRequest(fileInfo);

                // Extract images from the document
                var response = apiInstance.ExtractImages(request);

                // Loop through and output each extracted image's info
                foreach (var image in response.Images)
                {
                    Console.WriteLine("Image Format: " + image.Format + ", Image Path: " + image.Path);
                }
            }
            catch (Exception e)
            {
                // Handle any exceptions that occur during the API call
                Console.WriteLine("Exception when calling ParserApi.ExtractImages: " + e.Message);
            }
        }
    }
}

Parsing Document by Template

Learn how to parse a document by using a custom template for structured data extraction with the GroupDocs.Parser Cloud API. This example shows the template-based parsing in C#.

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

namespace GroupDocs.Parser.Cloud.Sdk.Examples
{
    class Parse_Document_By_Template
    {
        public static void Run()
        {
            // Get your AppSID and AppKey from https://dashboard.groupdocs.cloud/ (free registration required)
            var configuration = new Configuration
            {
                AppSid = "YOUR_APP_SID",
                AppKey = "YOUR_APP_KEY"
            };

            // Initialize the Parser API instance
            var apiInstance = new ParserApi(configuration);

            try
            {
                // Define the document and template file
                var fileInfo = new FileInfo { Folder = "path/to/folder", Name = "invoice.pdf" };
                var templatePath = "path/to/template.json";

                // Create a template-based parsing request
                var request = new ParseRequest(fileInfo, templatePath);

                // Parse the document using the template
                var response = apiInstance.Parse(request);

                // Output the parsed data to the console
                foreach (var field in response.Fields)
                {
                    Console.WriteLine("Field Name: " + field.Name + ", Field Value: " + field.Value);
                }
            }
            catch (Exception e)
            {
                // Handle any exceptions that occur during the API call
                Console.WriteLine("Exception when calling ParserApi.Parse: " + e.Message);
            }
        }
    }
}

Docs Swagger Examples Blog Support Release Notes 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