Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Smart Data Extractor Library | Syncfusion
description: Smart Data Extractor converts PDF documents and images to structured formats like JSON, Markdown (MD), and PDF output.
description: Smart Data Extractor converts PDF documents and images to structured formats like JSON, Markdown (MD), and PDF output.
platform: document-processing
control: SmartDataExtractor
documentation: UG
keywords: Assemblies
keywords: SmartDataExtractor, PDF to JSON, PDF to Markdown
---

# Welcome to Syncfusion<sup>&reg;</sup> Smart Data Extractor Library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ Refer to the following links for the assemblies and NuGet packages required on d

## Extract Data as JSON from PDF or Image

To extract form fields across a PDF document using the [ExtractDataAsJson](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsJson_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class, refer to the following code example:
To extract structured data from a PDF document or image using the [ExtractDataAsJson](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsJson_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class, refer to the following code example:

{% tabs %}

{% highlight c# tabtitle="C# [Cross-platform]" %}

using System.IO;
using Syncfusion.SmartDataExtractor;
using Syncfusion.SmartFormRecognizer;
using System.Text;

//Open the input PDF file as a stream.
//Open the input PDF or image file as a stream.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
//Initialize the Data Extractor.
Expand All @@ -48,10 +47,9 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess

using System.IO;
using Syncfusion.SmartDataExtractor;
using Syncfusion.SmartFormRecognizer;
using System.Text;

//Open the input PDF file as a stream.
//Open the input PDF or image file as a stream.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
//Initialize the Data Extractor.
Expand Down Expand Up @@ -96,7 +94,6 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
File.WriteAllText("Output.json", data, Encoding.UTF8);
}


{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Markdown is a lightweight markup language that adds formatting elements to plain

## Assemblies and NuGet packages required

Refer to the following links for assemblies and NuGet packages required based on platforms to Extract data as Markdown file using the .NET Word Library (DocIO).
Refer to the following links for the assemblies and NuGet packages required based on your target platform to extract data as a Markdown file using the Syncfusion® Smart Data Extractor library.

* [PDF to Markdown Extraction assemblies](/document-processing/data-extraction/net/Assemblies-required)
* [PDF to Markdown Extraction NuGet packages](/document-processing/data-extraction/net/Nuget-packages-required)

## Extract Data as Markdown from PDF or Image

To extract form fields across a PDF document using the [ExtractDataAsMarkdown](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsMarkdown_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class, refer to the following code example:
To extract structured data from a PDF document or image using the [ExtractDataAsMarkdown](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsMarkdown_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class, refer to the following code example:

{% tabs %}

Expand All @@ -30,7 +30,7 @@ using System.IO;
using Syncfusion.SmartDataExtractor;
using System.Text;

//Open the input PDF file as a stream.
//Open the input PDF or image file as a stream.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
//Initialize the Data Extractor.
Expand Down Expand Up @@ -70,7 +70,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync

## Extract a specific page to Markdown

The following code demonstrates how to use the [ExtractDataAsMarkdown](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsMarkdown_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class to extract content from a selected page in a PDF and save it as a Markdown file by specifying its page index.
The following code demonstrates how to use the [ExtractDataAsMarkdown](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsMarkdown_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class to extract content from a selected page in a PDF and save it as a Markdown file by specifying its page index. Page numbers are 1-based and the range is inclusive.

{% tabs %}

Expand Down Expand Up @@ -121,7 +121,7 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess

## Extract a range of pages to Markdown

The following code demonstrates how to use the [ExtractDataAsMarkdown](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsMarkdown_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class to extract content from a range of pages in a PDF and save it as a Markdown file by specifying the page range.
The following code demonstrates how to use the [ExtractDataAsMarkdown](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsMarkdown_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class to extract content from a range of pages in a PDF and save it as a Markdown file by specifying the page range. Page numbers are 1-based and the range is inclusive.

{% tabs %}

Expand Down Expand Up @@ -171,7 +171,7 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess

## Customize image saving

The [ImageNodeVisited](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.SaveOptions.html#Syncfusion_DocIO_DLS_SaveOptions_ImageNodeVisited) event in the [SaveOptions](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.SaveOptions.html) class (from the Syncfusion® DocIO library, used within Smart Data Extractor) allows control over how images are handled when generating a Markdown string. With this event, you can:
The [ImageNodeVisited](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.SaveOptions.html#Syncfusion_DocIO_DLS_SaveOptions_ImageNodeVisited) event in the [SaveOptions](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.SaveOptions.html) class (from the Syncfusion® DocIO library, used within Smart Data Extractor) allows control over how images are handled when generating a Markdown string. Create the output image folder before writing files. With this event, you can:

* Customize image names and storage paths, and save images externally using a FileStream.
* Replace Base64 content with a file path or URL for optimized storage and cloud reference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ keywords: Assemblies

{% enddoccards %}

The .NET **Smart Data Extractor** is a robust, deterministic C# library built to capture complete document structures from PDFs and images. Optimized for .NET workflows, it interprets visual layout patterns—lines, boxes, labels, and alignment—to accurately identify and extract *tables, text blocks, images, headers, footers, and form fields*. Each extracted element includes per‑field confidence scores, enabling precise validation, seamless export, and smooth integration into applications.
The .NET **Smart Data Extractor** extracts structured document content from PDFs and images. It interprets visual layout patterns—lines, boxes, labels, and alignment—to identify and extract *tables, text blocks, images, headers, footers, and form fields*. Each extracted element includes per‑field confidence scores for validation, export, and integration. See the [Conversions overview](NET/conversions/overview.md) for JSON, Markdown, and fillable PDF extraction.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ The Syncfusion<sup>&reg;</sup> Data Extraction Add-On can be downloaded from the

### Download Data Extraction Add-On Setup

1. You can evaluate our Data Extraction Add-On by visiting the [Download](https://www.syncfusion.com/downloads) page and selecting the product.
2. An unlock key is not required to download the Syncfusion<sup>&reg;</sup> Data Extraction Add-On.
3. You can download the Data Extraction Add-On at any time from your registered account’s [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page by clicking the More Download Options (as shown in the screenshot below).
![Trial and downloads of Syncfusion SmartDataExtractor](images/license-download.png)
4. The Syncfusion Data Extraction Add-On is provided in ZIP format. After downloading, extract the file to access assemblies and demos for PDF and image data extraction.
![License and downloads of Syncfusion SmartDataExtractor](images/start-trial-download-offline-installer.png)
1. You can download the Data Extraction Add-On at any time from your registered account's [Trials & Downloads](https://www.syncfusion.com/account/manage-trials/downloads) page by clicking **More Download Options** (as shown in the screenshot below).
![Trials and downloads of the Syncfusion Data Extraction Add-On](images/license-download.png)
2. The Syncfusion Data Extraction Add-On is provided in ZIP format. After downloading, extract the file to access the assemblies and demos for PDF and image data extraction.
![Extracted contents of the Syncfusion Data Extraction Add-On ZIP](images/start-trial-download-offline-installer.png)

N> The Syncfusion Data Extraction Add‑On is available in ZIP format for Windows, Linux, and Mac. Extract the file to access the assemblies and demos for PDF or image data extraction.
4 changes: 2 additions & 2 deletions Document-Processing/Data-Extraction/NET/overview.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Extract Structured Data in .NET | Syncfusion
canonical_url: "https://www.syncfusioninternal.com/document-sdk/net-pdf-data-extraction"
description: Syncfusion® Data Extraction is a .NET library that extracts tables, forms, text, and images from documents, outputing PDFs and JSON.
description: Syncfusion® Data Extraction is a .NET library that extracts tables, forms, text, and images from PDF documents.
platform: document-processing
control: DataExtraction
documentation: UG
Expand Down Expand Up @@ -219,7 +219,7 @@ The Cell Object represents an individual table entry, containing text values, sp

#### FormObjects

FormObjects represent interactive form fields detected on the page, such as text boxes, checkboxes, radio buttons, and signature regions.Each object includes positional data, dimensions, field type, and a confidence score that indicates detection reliability.
FormObjects represent interactive form fields detected on the page, such as text boxes, checkboxes, radio buttons, and signature regions. Each object includes positional data, dimensions, field type, and a confidence score that indicates detection reliability.

<table>
<thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ control: SmartDataExtractor
documentation: UG
keywords: Assemblies

---
---

# Working with Data Extraction

Expand Down Expand Up @@ -277,7 +277,7 @@ using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileA
DataExtractor extractor = new DataExtractor();
//Extract data and return as a loaded PDF document.
PdfLoadedDocument document = extractor.ExtractDataAsPdfDocument(inputStream);
//Save the extracted output as a new json file.
//Save the extracted output as a new PDF file.
document.Save("Output.pdf");
//Close the document.
document.Close(true);
Expand Down Expand Up @@ -413,7 +413,7 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Data-Extraction/Smart-Data-Extractor/Disable-Form-detection/.NET).

## Disable Table detection
## Disable Table Detection

To disable table detection while extracting structured data from a PDF document using the [ExtractDataAsJson](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html#Syncfusion_SmartDataExtractor_DataExtractor_ExtractDataAsJson_System_IO_Stream_) method of the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class, refer to the following code example:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Working with Form Recognition | Syncfusion&reg;
description: Learn how to recognize forms and configure FormRecognizeOptions in Syncfusion® SmartFormRecognizer to detect and process form elements easily.
description: Learn how to recognize forms and configure FormRecognizeOptions in Syncfusion® SmartFormRecognizer to detect and process form elements easily.
platform: document-processing
control: SmartFormRecognizer
documentation: UG
Expand Down
Loading