DocumentExtractSDK 1.0.0-beta02

This is a prerelease version of DocumentExtractSDK.
dotnet add package DocumentExtractSDK --version 1.0.0-beta02
                    
NuGet\Install-Package DocumentExtractSDK -Version 1.0.0-beta02
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DocumentExtractSDK" Version="1.0.0-beta02" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DocumentExtractSDK" Version="1.0.0-beta02" />
                    
Directory.Packages.props
<PackageReference Include="DocumentExtractSDK" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DocumentExtractSDK --version 1.0.0-beta02
                    
#r "nuget: DocumentExtractSDK, 1.0.0-beta02"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DocumentExtractSDK@1.0.0-beta02
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DocumentExtractSDK&version=1.0.0-beta02&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DocumentExtractSDK&version=1.0.0-beta02&prerelease
                    
Install as a Cake Tool

Document Extract SDK for .NET

The Document Extract SDK allows seamless integration of .NET applications with the Document Extract API. It provides functionality to extract structured JSON data from images and PDF documents. With this SDK, you can automate document processing and data extraction, including features like text recognition, form handling, and signature detection.

Features

  • Extracts data from PDF and image documents.
  • Supports form field extraction, including checkboxes and radio buttons.
  • Detects and extracts signatures from documents.
  • Handles table detection and extraction.
  • Easy integration with .NET applications.

Installation

You can install the Document Extract SDK for .NET via NuGet Package Manager:

bash Install-Package DocumentExtractSDK

Or by using the .NET CLI:

dotnet add package DocumentExtractSDK

Usage Example

Below is an example of how to use the SDK to extract data from a document:

string apiKey = "your-api-key";
string filePath = "C:/Users/Test/Downloads/test.pdf";
using var fileStream = File.OpenRead(filePath);

var request = new DocumentExtractRequest
{
    Features = new List<string> { Features.FORMS, Features.SIGNATURES },
    File = new FormFile(fileStream, 0, fileStream.Length, "file", Path.GetFileName(fileStream.Name)),
    UseAutomaticTypeMatching = true
};

var documentExtractClient = new DocumentExtractClient(apiKey);
var result = await documentExtractClient.GetExtractResultAsync<FormData>(request);
// result.OcrText OcrText property contains text extracted from the document
// result.FormData contains FORMS data extracted from the document
// result.Signatures contains SIGNATURES data extracted from the document
// result.Tables contains TABLES data extracted from the document

Or use below example to manually specify the fields to extract

string apiKey = "your-api-key";
string filePath = "C:/Users/Test/Downloads/test.pdf";
using var fileStream = File.OpenRead(filePath);

var request = new DocumentExtractRequest
{
    Features = new List<string> { Features.FORMS, Features.SIGNATURES },
    File = new FormFile(fileStream, 0, fileStream.Length, "file", Path.GetFileName(fileStream.Name)),
    UseAutomaticTypeMatching = false,
    ExtractProperties = [
        "firstName",
        "lastName",
        "gender",
        "dateOfBirth",
        "education",
        "languagesSpoken",
        "address with addressLine1, addressLine2, city, state, zip",
        "homePhone",
        "cellPhone",
        "workPhone",
        "email",
        "availableWeekHours",
        "availableMonthHours",
        "availableDaysAndTime",
        "hasVehicle",
        "vehicleType",
        "licenseNumber",
        "licenseState",
        "pastVolunteerExperience",
        "references list of name and phone",
        "hasSignature",
        "signatureDate"]
};

var documentExtractClient = new DocumentExtractClient(apiKey);
var result = await documentExtractClient.GetExtractResultAsync<FormData>(request);
// result.OcrText OcrText property contains text extracted from the document
// result.FormData contains FORMS data extracted from the document
// result.Signatures contains SIGNATURES data extracted from the document
// result.Tables contains TABLES data extracted from the document

Available Features

  • FORMS: Extract form fields like checkboxes, text fields, and radio buttons.
  • SIGNATURES: Detect and extract signatures from documents.
  • TABLES: Detect and extract tables from documents.

Authentication

To use the API, you need to sign up for a Document Extract account and get your API key.

License

MIT License

Copyright (c) 2025 Document Extract LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Support

For support, please reach out to our team via support@documentextract.com.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta02 67 2/19/2025
1.0.0-beta 66 2/19/2025
0.0.2-preview001 75 2/14/2025
0.0.1-preview004 69 2/13/2025
0.0.1-preview003 76 2/11/2025
0.0.1-preview002 71 2/11/2025
0.0.1-preview001 79 2/11/2025