|
1 | 1 | --- |
2 | 2 | title: Working with Recognize methods in SmartFormRecognizer| Syncfusion® |
3 | | -description: Learn how to use Recognize methods in Syncfusion® SmartFormRecognizer library. |
| 3 | +description: Learn how to effectively use the Recognize methods in the Syncfusion® SmartFormRecognizer library to process and extract data from forms with ease. |
4 | 4 | platform: document-processing |
5 | 5 | control: SmartFormRecognizer |
6 | 6 | documentation: UG |
7 | 7 | --- |
8 | 8 |
|
9 | | -# Recognize Forms |
| 9 | +# Recognize Forms Using SmartFormRecognizer |
10 | 10 |
|
11 | 11 | The `FormRecognizer` exposes several convenience methods to recognize forms from a `Stream` input. Each method accepts an input `Stream` (PDF or image) and returns recognized output either as a `PdfLoadedDocument`, a `Stream` containing PDF data, or as a JSON string. |
12 | 12 |
|
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, awaitable 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 server‑side workflows. |
17 | 17 |
|
18 | 18 | Example (synchronous): |
19 | 19 |
|
@@ -55,7 +55,7 @@ public async void Button_Click(object sender, RoutedEventArgs e) |
55 | 55 |
|
56 | 56 |
|
57 | 57 | ## Recognize forms using Stream |
58 | | -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, awaitable 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 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. |
59 | 59 |
|
60 | 60 | Example (synchronous): |
61 | 61 |
|
@@ -105,7 +105,7 @@ public async void Button_Click(object sender, RoutedEventArgs e) |
105 | 105 |
|
106 | 106 | ## Recognize forms using JSON |
107 | 107 |
|
108 | | -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, awaitable 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 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. |
109 | 109 |
|
110 | 110 | Example (synchronous): |
111 | 111 |
|
|
0 commit comments