diff --git a/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-Core.md b/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-Core.md
index 8603798b4..f73bc79aa 100644
--- a/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-Core.md
+++ b/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-Core.md
@@ -70,7 +70,7 @@ Step 6: Add a new action method named `ExtractData` in HomeController.cs and inc
// Open the input PDF file as a stream.
using (FileStream stream = new FileStream(Path.GetFullPath("Input.pdf"), FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Extract form data as JSON.
string data = extractor.ExtractDataAsJson(stream);
@@ -87,10 +87,12 @@ using (FileStream stream = new FileStream(Path.GetFullPath("Input.pdf"), FileMod
{% endhighlight %}
Step 7: Build the project.
- Click on Build > Build Solution or press Ctrl + Shift + B to build the project.
+
+Click on **Build** → **Build Solution** or press Ctrl+Shift+B to build the project.
Step 8: Run the project.
- Click the Start button (green arrow) or press F5 to run the app.
+
+Click the Start button (green arrow) or press F5 to run the application.
{% endtabcontent %}
@@ -153,7 +155,7 @@ Step 7: Add a new action method named `ExportToJson` in HomeController.cs and in
// Open the input PDF file as a stream.
using (FileStream stream = new FileStream(Path.GetFullPath("Input.pdf"), FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Extract form data as JSON.
string data = extractor.ExtractDataAsJson(stream);
diff --git a/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-MVC.md b/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-MVC.md
index 3decbdfc2..927479ab8 100644
--- a/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-MVC.md
+++ b/Document-Processing/Data-Extraction/NET/Extract-Data-in-ASP-NET-MVC.md
@@ -51,7 +51,7 @@ Step 5: Add a new button in the Index.cshtml as shown below.
{% endhighlight %}
-Step 6: Add a new action method named ExtractData in `HomeController.cs` and include the following code example to extract 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 in the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class.
+Step 6: Add a new action method named `ExtractData` in HomeController.cs and include the following code example to extract 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 in the [DataExtractor](https://help.syncfusion.com/cr/document-processing/Syncfusion.SmartDataExtractor.DataExtractor.html) class.
{% highlight c# tabtitle="C#" %}
@@ -61,7 +61,7 @@ string inputPath = Server.MapPath("~/App_Data/Input.pdf");
// Open the input PDF file as a stream.
using (FileStream stream = new FileStream(inputPath, FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Extract form data as JSON.
string data = extractor.ExtractDataAsJson(stream);
@@ -75,10 +75,10 @@ using (FileStream stream = new FileStream(inputPath, FileMode.Open, FileAccess.R
{% endhighlight %}
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Data-Extraction/Getting-Started/ASP.NETMVC/Extract_Data).
+
By executing the program, you will get the JSON file as follows.

-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Data-Extraction/Getting-Started/ASP.NETMVC/Extract_Data).
-
Click [here](https://www.syncfusion.com/document-sdk/net-pdf-data-extraction) to explore the rich set of Syncfusion® Data Extraction library features.
\ No newline at end of file
diff --git a/Document-Processing/Data-Extraction/NET/Extract-Data-in-Blazor.md b/Document-Processing/Data-Extraction/NET/Extract-Data-in-Blazor.md
index 06a099f26..902d76fad 100644
--- a/Document-Processing/Data-Extraction/NET/Extract-Data-in-Blazor.md
+++ b/Document-Processing/Data-Extraction/NET/Extract-Data-in-Blazor.md
@@ -66,14 +66,11 @@ Include the following code snippet to add a button in your Blazor application th
{% tabs %}
{% highlight CSHTML %}
Run Extraction
-
-
@message
-
{% endhighlight %}
{% endtabs %}
@@ -85,12 +82,10 @@ Add the following code snippet to extract data from a PDF and download the file
{% highlight c# tabtitle="C#" %}
@code {
string message = "Waiting...";
-
async Task RunExtraction()
{
message = "Processing...";
StateHasChanged(); // force UI update immediately
-
message = await extractor.RunExtraction();
}
}
@@ -122,10 +117,8 @@ using (FileStream stream = new FileStream(@"wwwroot/Input.pdf", FileMode.Open, F
{
// Initialize the Smart Data Extractor
DataExtractor extractor = new DataExtractor();
-
// Extract data as JSON string
string data = extractor.ExtractDataAsJson(stream);
-
// Return the JSON string
return data;
}
diff --git a/Document-Processing/Data-Extraction/NET/Extract-Data-in-MAUI.md b/Document-Processing/Data-Extraction/NET/Extract-Data-in-MAUI.md
index 97a7eac24..902f8582d 100644
--- a/Document-Processing/Data-Extraction/NET/Extract-Data-in-MAUI.md
+++ b/Document-Processing/Data-Extraction/NET/Extract-Data-in-MAUI.md
@@ -48,24 +48,24 @@ Step 4: Add a new button to the **MainPage.xaml** as shown below.
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Extract_Data_MAUI.MainPage">
-
-
+
-
-
-
-
+
+
{% endhighlight %}
diff --git a/Document-Processing/Data-Extraction/NET/Extract-Data-in-WPF.md b/Document-Processing/Data-Extraction/NET/Extract-Data-in-WPF.md
index 380b1f6e6..1cf5f85df 100644
--- a/Document-Processing/Data-Extraction/NET/Extract-Data-in-WPF.md
+++ b/Document-Processing/Data-Extraction/NET/Extract-Data-in-WPF.md
@@ -57,7 +57,7 @@ Step 5: Add the following code in `ExtractButton_Click` to extract data from a P
// Open the input PDF file as a stream.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Extract form data as JSON.
string data = extractor.ExtractDataAsJson(stream);
@@ -67,9 +67,9 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
{% endhighlight %}
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Data-Extraction/Getting-Started/WPF/Extract_Data).
+
By executing the program, you will get the JSON file as follows.

-
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Data-Extraction/Getting-Started/WPF/Extract_Data).
-
+
Click [here](https://www.syncfusion.com/document-sdk/net-pdf-data-extraction) to explore the rich set of Syncfusion®Data Extraction library features.
\ No newline at end of file
diff --git a/Document-Processing/Data-Extraction/NET/GettingStarted_images/ASPNETCore_Nuget.png b/Document-Processing/Data-Extraction/NET/GettingStarted_images/ASPNETCore_Nuget.png
index 954a74069..afed63129 100644
Binary files a/Document-Processing/Data-Extraction/NET/GettingStarted_images/ASPNETCore_Nuget.png and b/Document-Processing/Data-Extraction/NET/GettingStarted_images/ASPNETCore_Nuget.png differ
diff --git a/Document-Processing/Data-Extraction/NET/GettingStarted_images/ConsoleCoreNuget.png b/Document-Processing/Data-Extraction/NET/GettingStarted_images/ConsoleCoreNuget.png
index 954a74069..afed63129 100644
Binary files a/Document-Processing/Data-Extraction/NET/GettingStarted_images/ConsoleCoreNuget.png and b/Document-Processing/Data-Extraction/NET/GettingStarted_images/ConsoleCoreNuget.png differ
diff --git a/Document-Processing/Data-Extraction/NET/GettingStarted_images/MVC_DataExtractorNuget.png b/Document-Processing/Data-Extraction/NET/GettingStarted_images/MVC_DataExtractorNuget.png
index bec4971b7..b3fc595e7 100644
Binary files a/Document-Processing/Data-Extraction/NET/GettingStarted_images/MVC_DataExtractorNuget.png and b/Document-Processing/Data-Extraction/NET/GettingStarted_images/MVC_DataExtractorNuget.png differ
diff --git a/Document-Processing/Data-Extraction/NET/conversions/pdf-to-json.md b/Document-Processing/Data-Extraction/NET/conversions/pdf-to-json.md
index b73856986..6129b5164 100644
--- a/Document-Processing/Data-Extraction/NET/conversions/pdf-to-json.md
+++ b/Document-Processing/Data-Extraction/NET/conversions/pdf-to-json.md
@@ -15,12 +15,12 @@ JavaScript Object Notation (JSON) is a lightweight data‑interchange format tha
Refer to the following links for the assemblies and NuGet packages required on different platforms to extract data as a JSON file using the Smart Data Extractor library.
-* [Assemblies required for PDF to JSON Extraction](https://help.syncfusion.com/document-processing/data-extraction/smart-data-extractor/net/assemblies-required)
-* [NuGet packages required for PDF to JSON Extraction](https://help.syncfusion.com/document-processing/data-extraction/smart-data-extractor/net/nuget-packages-required)
+* [Assemblies required for PDF to JSON Extraction](/document-processing/data-extraction/net/Assemblies-required)
+* [NuGet packages required for PDF to JSON Extraction](/document-processing/data-extraction/net/Nuget-packages-required)
## Extract Data as JSON from PDF or Image
-To extract form fields across a PDF document using the **ExtractDataAsJson** method of the **DataExtractor** class, refer to the following code example:
+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:
{% tabs %}
@@ -73,7 +73,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## Extract Data from a Customized Page Range
-To extract data from a specific range of pages in a PDF document using the ExtractDataAsJson method of the DataExtractor class, refer to the following code example:
+To extract data from a specific range of pages in 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:
{% tabs %}
diff --git a/Document-Processing/Data-Extraction/NET/conversions/pdf-to-markdown.md b/Document-Processing/Data-Extraction/NET/conversions/pdf-to-markdown.md
index 5bc668f07..2156093d7 100644
--- a/Document-Processing/Data-Extraction/NET/conversions/pdf-to-markdown.md
+++ b/Document-Processing/Data-Extraction/NET/conversions/pdf-to-markdown.md
@@ -15,12 +15,12 @@ Markdown is a lightweight markup language that adds formatting elements to plain
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).
-* [PDF to Markdown Extraction assemblies](https://help.syncfusion.com/document-processing/data-extraction/smart-data-extractor/net/assemblies-required)
-* [PDF to Markdown Extraction NuGet packages](https://help.syncfusion.com/document-processing/data-extraction/smart-data-extractor/net/nuget-packages-required)
+* [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** method of the **DataExtractor** class, refer to the following code example:
+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:
{% tabs %}
@@ -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** method of the **DataExtractor** 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.
{% tabs %}
@@ -119,10 +119,9 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
{% endtabs %}
-
## Extract a range of pages to Markdown
-The following code demonstrates how to use the **ExtractDataAsMarkdown** method of the **DataExtractor** 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.
{% tabs %}
diff --git a/Document-Processing/Data-Extraction/NET/how-to-download-and-install.md b/Document-Processing/Data-Extraction/NET/how-to-download-and-install.md
index 732317729..15fb57d63 100644
--- a/Document-Processing/Data-Extraction/NET/how-to-download-and-install.md
+++ b/Document-Processing/Data-Extraction/NET/how-to-download-and-install.md
@@ -23,4 +23,5 @@ The Syncfusion® Data Extraction Add-On can be downloaded from the
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.

+
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.
\ No newline at end of file
diff --git a/Document-Processing/Data-Extraction/NET/working-with-data-extraction.md b/Document-Processing/Data-Extraction/NET/working-with-data-extraction.md
index af9da3949..ccf5c36ed 100644
--- a/Document-Processing/Data-Extraction/NET/working-with-data-extraction.md
+++ b/Document-Processing/Data-Extraction/NET/working-with-data-extraction.md
@@ -1,5 +1,5 @@
---
-title: Working with Table Extraction | Syncfusion
+title: Working with Data Extraction | Syncfusion
description: Syncfusion® Smart Data Extractor is a .NET library that extracts text, tables, forms, and images from PDF and image files with structured outputs.
platform: document-processing
control: SmartDataExtractor
@@ -185,7 +185,6 @@ using (FileStream stream = new FileStream("Input.png", FileMode.Open, FileAccess
File.WriteAllText("Output.md", data, Encoding.UTF8);
}
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
@@ -392,7 +391,7 @@ using Syncfusion.SmartDataExtractor;
// Load the input PDF file.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Disable table detection.
//By default - true
@@ -416,7 +415,7 @@ using Syncfusion.SmartDataExtractor;
// Load the input PDF file.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Disable table detection.
//By default - true
@@ -425,7 +424,7 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
PdfLoadedDocument pdf = extractor.ExtractDataAsJson(stream);
// Save the extracted output as a new json file.
pdf.Save("Output.json");
- // Close the document to release resources.
+ // Close the document.
pdf.Close(true);
}
@@ -452,10 +451,8 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
{
//Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
-
//Enable form detection in the document to identify form fields.
extractor.EnableFormDetection = true;
-
//Configure form recognition options for advanced detection.
FormRecognizeOptions formOptions = new FormRecognizeOptions();
//Recognize forms across pages 1 to 5 in the document.
@@ -472,10 +469,8 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
formOptions.DetectRadioButtons = true;
//Assign the configured form recognition options to the extractor.
extractor.FormRecognizeOptions = formOptions;
-
//Extract form data and return as a loaded json file.
PdfLoadedDocument pdf = extractor.ExtractDataAsJson(stream);
-
//Save the extracted output as a new json file.
pdf.Save("Output.json");
//Close the document.
@@ -495,10 +490,8 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
{
//Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
-
//Enable form detection in the document to identify form fields.
extractor.EnableFormDetection = true;
-
//Configure form recognition options for advanced detection.
FormRecognizeOptions formOptions = new FormRecognizeOptions();
//Recognize forms across pages 1 to 5 in the document.
@@ -515,10 +508,8 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
formOptions.DetectRadioButtons = true;
//Assign the configured form recognition options to the extractor.
extractor.FormRecognizeOptions = formOptions;
-
//Extract form data and return as a loaded json document.
PdfLoadedDocument pdf = extractor.ExtractDataAsJson(stream);
-
//Save the extracted output as a new json file.
pdf.Save("Output.json");
//Close the document.
@@ -546,12 +537,10 @@ using Syncfusion.SmartTableExtractor;
// Load the input PDF file.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
-
// Enable table detection and set confidence threshold.
extractor.EnableTableDetection = true;
-
// Configure table extraction options.
TableExtractionOptions tableOptions = new TableExtractionOptions();
// Extract tables across pages 1 to 5.
@@ -581,7 +570,7 @@ using Syncfusion.SmartTableExtractor;
// Load the input PDF file.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Enable table detection and set confidence threshold.
extractor.EnableTableDetection = true;
@@ -623,7 +612,7 @@ using Syncfusion.SmartDataExtractor;
// Load the input PDF file.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Apply confidence threshold to extract the data.
// Only elements with confidence >= 0.75 will be included in the results.
@@ -647,7 +636,7 @@ using Syncfusion.SmartDataExtractor;
// Load the input PDF file.
using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
- // Initialize the Smart Data Extractor.
+ // Initialize the Data Extractor.
DataExtractor extractor = new DataExtractor();
// Apply confidence threshold to extract the data.
// Only elements with confidence >= 0.75 will be included in the results.
diff --git a/Document-Processing/Data-Extraction/NET/working-with-form-recognition.md b/Document-Processing/Data-Extraction/NET/working-with-form-recognition.md
index 83928dee8..4e76f53b2 100644
--- a/Document-Processing/Data-Extraction/NET/working-with-form-recognition.md
+++ b/Document-Processing/Data-Extraction/NET/working-with-form-recognition.md
@@ -23,7 +23,7 @@ using Syncfusion.SmartFormRecognizer;
// Open the input PDF file as a stream.
using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Form Recognizer.
+ // Initialize the Form Recognizer.
FormRecognizer recognizer = new FormRecognizer();
// Recognize the form and get the output as a JSON string.
string outputJson = recognizer.RecognizeFormAsJson(inputStream);
@@ -46,7 +46,7 @@ using Syncfusion.SmartFormRecognizer;
// Open the input PDF file as a stream.
using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Form Recognizer.
+ // Initialize the Form Recognizer.
FormRecognizer recognizer = new FormRecognizer();
// Recognize the form asynchronously and get the output as a JSON string.
string outputJson = await recognizer.RecognizeFormAsJsonAsync(inputStream);
@@ -77,13 +77,13 @@ using Syncfusion.Pdf.Parsing;
// Open the input PDF file as a stream.
using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Form Recognizer.
+ // Initialize the Form Recognizer.
FormRecognizer recognizer = new FormRecognizer();
// Recognize the form and get the output as a PDF document.
PdfLoadedDocument document = recognizer.RecognizeFormAsPdfDocument(inputStream);
// Save the recognized document.
document.Save("Output.pdf");
- // Close the document to release resources.
+ // Close the document.
document.Close();
}
@@ -103,13 +103,13 @@ using Syncfusion.SmartFormRecognizer;
// Open the input PDF file as a stream.
using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Form Recognizer.
+ // Initialize the Form Recognizer.
FormRecognizer recognizer = new FormRecognizer();
// Recognize the form asynchronously and get the output as a PDF document.
PdfLoadedDocument document = await recognizer.RecognizeFormAsPdfDocumentAsync(inputStream);
// Save the recognized document.
document.Save("Output.pdf");
- // Close the document to release resources.
+ // Close the document.
document.Close();
}
@@ -133,7 +133,7 @@ using Syncfusion.SmartFormRecognizer;
// Open the input PDF file as a stream.
using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Form Recognizer.
+ // Initialize the Form Recognizer.
FormRecognizer recognizer = new FormRecognizer();
// Recognize the form and get the output as a PDF stream.
using (Stream outputStream = recognizer.RecognizeFormAsPdfStream(inputStream))
@@ -162,19 +162,21 @@ using Syncfusion.SmartFormRecognizer;
// Open the input PDF file as a stream.
using (FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite))
{
- // Initialize the Smart Form Recognizer.
- FormRecognizer recognizer = new FormRecognizer();
- // Recognize the form asynchronously and get the output as a PDF stream.
- using (Stream outputStream = await recognizer.RecognizeFormAsPdfStreamAsync(inputStream))
- {
- // Save the output PDF stream to a file.
- using (FileStream fileStream = File.Create("Output.pdf"))
- {
- outputStream.Seek(0, SeekOrigin.Begin);
- outputStream.CopyTo(fileStream);
- }
- }
+ // Initialize the Form Recognizer.
+ FormRecognizer recognizer = new FormRecognizer();
+ // Recognize the form asynchronously and get the output as a PDF stream.
+ using (Stream outputStream = await recognizer.RecognizeFormAsPdfStreamAsync(inputStream))
+ {
+ // Save the output PDF stream to a file.
+ using (FileStream fileStream = File.Create("Output.pdf"))
+ {
+ outputStream.Seek(0, SeekOrigin.Begin);
+ outputStream.CopyTo(fileStream);
+ }
+ }
}
+
+
{% endhighlight %}
{% endtabs %}
@@ -194,7 +196,7 @@ using Syncfusion.SmartFormRecognizer;
// Open the input PDF file as a stream.
using FileStream inputStream = new FileStream(Path.GetFullPath("Input.pdf"), FileMode.Open, FileAccess.Read);
-// Initialize the Smart Form Recognizer.
+// Initialize the Form Recognizer.
FormRecognizer recognizer = new FormRecognizer();
// Create a cancellation token that cancels after 5 seconds.
using CancellationTokenSource cts = new CancellationTokenSource(TimeSpan.FromSeconds(5));
diff --git a/Document-Processing/Data-Extraction/NET/working-with-table-extraction.md b/Document-Processing/Data-Extraction/NET/working-with-table-extraction.md
index 781cc3c29..c81f8fb6c 100644
--- a/Document-Processing/Data-Extraction/NET/working-with-table-extraction.md
+++ b/Document-Processing/Data-Extraction/NET/working-with-table-extraction.md
@@ -184,15 +184,12 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
{
//Initialize the Smart Table Extractor.
TableExtractor extractor = new TableExtractor();
-
//Set the page range for extraction (pages 1 to 3).
TableExtractionOptions options = new TableExtractionOptions();
options.PageRange = new int[,] { { 1, 3 } };
extractor.TableExtractionOptions = options;
-
//Extract table data from the specified page range as a Markdown string.
string data = extractor.ExtractTableAsMarkdown(stream);
-
//Save the extracted output as a new Markdown file.
File.WriteAllText("Output.md", data, Encoding.UTF8);
}
@@ -209,15 +206,12 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
{
//Initialize the Smart Table Extractor.
TableExtractor extractor = new TableExtractor();
-
//Set the page range for extraction (pages 1 to 3).
TableExtractionOptions options = new TableExtractionOptions();
options.PageRange = new int[,] { { 1, 3 } };
extractor.TableExtractionOptions = options;
-
//Extract table data from the specified page range as a Markdown string.
string data = extractor.ExtractTableAsMarkdown(stream);
-
//Save the extracted output as a new Markdown file.
File.WriteAllText("Output.md", data, Encoding.UTF8);
}
@@ -299,7 +293,6 @@ using (FileStream stream = new FileStream("Input.pdf", FileMode.Open, FileAccess
TableExtractionOptions options = new TableExtractionOptions();
//By default *DetectBorderlessTables is true*
options.DetectBorderlessTables = false;
-
//Assign the configured options to the extractor.
extractor.TableExtractionOptions = options;
//Extract table data from the PDF document as a JSON string.