You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/SmartDataExtractor/SmartFormRecognizer/NET/overview.md
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,8 @@ keywords: Assemblies
9
9
10
10
# Smart Form Recognizer
11
11
12
-
Smart Form Recognizer is a deterministic, on premise C# library for .NET designed to reliably detect and extract form data from PDFs and scanned images. Unlike AI/ML‑based approaches, this library uses visual layout heuristics—including lines, boxes, and circular markers—to identify form structures with high consistency and predictability. It supports extraction of common form controls such as text fields, checkboxes, radio buttons, and signature regions, producing clean, structured JSON that can be fed directly into review and workflow systems.
12
+
Smart Form Recognizer is a deterministic, on premise C# library for .NET designed to reliably detect and extract form data from PDFs and scanned images. Unlike AI‑based approaches, this library uses visual layout heuristicsincluding lines, boxes, and circular markersto identify form structures with high consistency and predictability. It supports It supports to identify the common form controls such as text fields, checkboxes, radio buttons, and signature regions, producing clean, structured JSON that can be fed directly into review and workflow systems.
13
13
14
-
In addition to extraction, the library can also generate fillable PDFs, automatically placing form fields where they were detected, enabling instant integration into digital form processing pipelines.
15
14
16
15
Core Capabilities
17
16
@@ -81,18 +80,14 @@ The following code snippet illustrates how to detects form data from PDFs using
81
80
{% tabs %}
82
81
{% highlight c# tabtitle="C#" %}
83
82
84
-
//Initialize the Form Recognizer
85
-
FormRecognizer smartFormRecognizer = new FormRecognizer();
86
-
//Read the input PDF file as stream
87
-
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
88
-
//Recognize the form and get the output as PDF stream
Copy file name to clipboardExpand all lines: Document-Processing/SmartDataExtractor/SmartFormRecognizer/NET/recognize-forms.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Working with Recognize methods in SmartFormRecognizer| Syncfusion®
3
-
description: Learn how to effectively use the Recognize methods in the Syncfusion® SmartFormRecognizer library to process and extract data from forms with ease.
3
+
description: Learn how to effectively use the Recognize methods in the Syncfusion® SmartFormRecognizer library to process and detects from forms with ease.
4
4
platform: document-processing
5
5
control: SmartFormRecognizer
6
6
documentation: UG
@@ -13,7 +13,7 @@ The `FormRecognizer` exposes several convenience methods to recognize forms from
13
13
Below each method signature you'll find a explanation and corrected example usage (both synchronous and asynchronous where applicable).
14
14
15
15
## Recognize forms using PdfLoadedDocument
16
-
Using `PdfLoadedDocument` this operation analyzes the form content supplied through the inputStream whether it contains a PDF or an image and produces a fully enriched PdfLoadedDocument that includes recognized form elements such as checkboxes, radio buttons, textboxes, and signatures, according to the options defined in `FormRecognizeOptions`. This recognition process supports both execution patterns: the synchronous `RecognizeFormAsPdfDocument` method for immediate, blocking processing, and the asynchronous `RecognizeFormAsPdfDocumentAsync` method for non‑blocking, await processing ideal for responsive UI applications or scalable server‑side workflows.
16
+
Using `PdfLoadedDocument` this operation analyzes the form content supplied through the inputStream whether it contains a PDF or an image and produces a fully enriched PdfLoadedDocument that includes recognized form elements such as checkboxes, radio buttons, textboxes, and signatures, according to the options defined in `FormRecognizeOptions`. This recognition process supports both execution patterns: the synchronous `RecognizeFormAsPdfDocument` method for immediate, blocking processing, and the asynchronous `RecognizeFormAsPdfDocumentAsync` method for non‑blocking, await processing ideal for responsive UI applications or scalable serverside workflows.
Using `Stream`this operation processes the form content provided through the inputStream—whether it contains a PDF or an image—and returns the fully recognized PDF as a Stream.This functionality is available through both the synchronous `RecognizeFormAsPdfStream` method for immediate, blocking execution and the asynchronous `RecognizeFormAsPdfStreamAsync` method for non‑blocking, await processing suitable for responsive UI applications, background services, and scalable server‑side workflows.
58
+
Using `Stream`this operation processes the form content provided through the inputStreamwhether it contains a PDF or an imageand returns the fully recognized PDF as a Stream.This functionality is available through both the synchronous `RecognizeFormAsPdfStream` method for immediate, blocking execution and the asynchronous `RecognizeFormAsPdfStreamAsync` method for non‑blocking, await processing suitable for responsive UI applications, background services, and scalable server‑side workflows.
Using `JSON`this operation recognizes the form contained in the inputStream whether the source document is a PDF or an image—and returns the complete recognition output serialized as a JSON string. This functionality is accessible through both the synchronous `RecognizeFormAsJson` method, which performs immediate, blocking processing, and the asynchronous `RecognizeFormAsJsonAsync` method, which provides non‑blocking, await execution suitable for UI applications, background workers, and scalable cloud or server‑side workflows.
108
+
Using `JSON`this operation recognizes the form contained in the inputStream whether the source document is a PDF or an imageand returns the complete recognition output serialized as a JSON string. This functionality is accessible through both the synchronous `RecognizeFormAsJson` method, which performs immediate, blocking processing, and the asynchronous `RecognizeFormAsJsonAsync` method, which provides non‑blocking, await execution suitable for UI applications, background workers, and scalable cloud or server‑side workflows.
The async overloads accept an optional `CancellationToken` to cancel long-running operations.InitiallycancellationToken value in default.Based on our requirement we can optimize the cancellationToken value.
153
+
The async overloads accept an optional `CancellationToken` to cancel longrunning operations.Initially, the cancellationToken uses its default value, and based on our requirements, we can optimize or supply a custom token as needed. This behavior is supported across all async methods, including PDF, JSON, and PdfLoadedDocument asynchronous operations
Copy file name to clipboardExpand all lines: Document-Processing/SmartDataExtractor/SmartFormRecognizer/NET/smart-form-recognizer.md
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,8 @@ keywords: Assemblies
9
9
10
10
# Smart Form Recognizer
11
11
12
-
Smart Form Recognizer is a deterministic, on premise C# library for .NET designed to reliably detect and extract form data from PDFs and scanned images. Unlike AI/ML‑based approaches, this library uses visual layout heuristics—including lines, boxes, and circular markers—to identify form structures with high consistency and predictability. It supports extraction of common form controls such as text fields, checkboxes, radio buttons, and signature regions, producing clean, structured JSON that can be fed directly into review and workflow systems.
12
+
Smart Form Recognizer is a deterministic, on premise C# library for .NET designed to reliably detect and extract form data from PDFs and scanned images. Unlike AI‑based approaches, this library uses visual layout heuristicsincluding lines, boxes, and circular markersto identify form structures with high consistency and predictability. It supports It supports to identify the common form controls such as text fields, checkboxes, radio buttons, and signature regions, producing clean, structured JSON that can be fed directly into review and workflow systems.
13
13
14
-
In addition to extraction, the library can also generate fillable PDFs, automatically placing form fields where they were detected, enabling instant integration into digital form processing pipelines.
15
14
16
15
Core Capabilities
17
16
@@ -32,18 +31,14 @@ The following code snippet illustrates how to detects form data from PDFs using
32
31
{% tabs %}
33
32
{% highlight c# tabtitle="C#" %}
34
33
35
-
//Initialize the Form Recognizer
36
-
FormRecognizer smartFormRecognizer = new FormRecognizer();
37
-
//Read the input PDF file as stream
38
-
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
39
-
//Recognize the form and get the output as PDF stream
Copy file name to clipboardExpand all lines: Document-Processing/SmartDataExtractor/SmartFormRecognizer/NET/working-with-recognize-option.md
+9-20Lines changed: 9 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ documentation: UG
8
8
9
9
# Working with FormRecognizeOptions
10
10
11
-
`FormRecognizeOptions` provides configurable settings that control how the SmartFormRecognizer detects and extracts elements from a document. It allows you to enable or disable the detection of specific form controls—such as checkboxes, radio buttons, textboxes, and signatures—while also letting you fine‑tune the recognition results using a confidence threshold.
11
+
`FormRecognizeOptions` provides configurable settings that control how the SmartFormRecognizer detects elements from a document. It allows you to enable or disable the detection of specific form controlssuch as checkboxes, radio buttons, textboxes, and signatures—while also letting you finetune the recognition results using a confidence threshold.
12
12
Additionally, it supports restricting processing to specific pages through an optional 1‑based inclusive PageRange. By adjusting these options, developers can optimize performance, reduce noise in results, and tailor form extraction precisely to the needs of their application
13
13
14
14
## Properties
15
15
16
16
### DetectTextboxes
17
-
`DetectTextboxes` is a boolean property in FormRecognizeOptions that determines whether the form recognizer should detect and extract textbox fields from the document layout. When enabled (default: true), it identifies rectangular input areas—such as printed boxes, form entry fields, or bordered regions intended for user-written text—and includes them in the recognition output.
17
+
`DetectTextboxes` is a boolean property in FormRecognizeOptions that determines whether the form recognizer should detect textbox fields from the document layout. When enabled (default: true), it identifies rectangular input areassuch as printed boxes,Rounded boxes, lines, boxes and line inside the table cell, or bordered regions intended for userwritten textand includes them in the recognition output.
18
18
19
19
{% tabs %}
20
20
{% highlight c# tabtitle="C#" %}
@@ -24,14 +24,12 @@ FormRecognizer recognizer = new FormRecognizer();
`DetectCheckboxes` is a boolean option in FormRecognizeOptions that controls whether the form recognizer should identify checkbox elements during document processing. When enabled (default: true), the recognizer scans the page layout for checkbox shapes,determines their positions.
32
+
`DetectCheckboxes` is a boolean option in FormRecognizeOptions that controls whether the form recognizer should identify checkbox elements during document processing. When enabled (default: true), the recognizer scans the page layout for checkbox shapes,Rounded square,determines their positions.
35
33
36
34
{% tabs %}
37
35
{% highlight c# tabtitle="C#" %}
@@ -42,15 +40,12 @@ FormRecognizer recognizer = new FormRecognizer();
`DetectRadioButtons` is a boolean property in FormRecognizeOptions that specifies whether the form recognizer should detect radio button elements in the document. When enabled (default: true), the recognizer identifies circular objects in images or in the PDF documents then add radio buttons in that identified locations.
48
+
`DetectRadioButtons` is a boolean property in FormRecognizeOptions that specifies whether the form recognizer should detect radio button elements in the document. When enabled (default: true), the recognizer identifies circular and oval objects in images or in the PDF documents then add radio buttons in that identified locations.
54
49
55
50
{% tabs %}
56
51
{% highlight c# tabtitle="C#" %}
@@ -60,15 +55,12 @@ FormRecognizer recognizer = new FormRecognizer();
`DetectSignatures` is a boolean property in FormRecognizeOptions that controls whether the form recognizer should identify signature fields within a document. When enabled (default: true), the recognizer scans for handwritten-style areas, signature lines, or regions typically used for signing, and includes these detected signature blocks in the output.
63
+
`DetectSignatures` is a boolean property in FormRecognizeOptions that controls whether the form recognizer should identify signature fields within a document. When enabled (default: true), the recognizer scans for handwrittenstyle areas, signature lines, or regions typically used for signing, and includes these detected signature bounds in the output.
72
64
73
65
{% tabs %}
74
66
{% highlight c# tabtitle="C#" %}
@@ -78,10 +70,6 @@ FormRecognizer recognizer = new FormRecognizer();
0 commit comments