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
The Syncfusion® Smart Data Extractor is a .NET library used to extract structured data and document elements from PDFs and images in Console Application.
4
+
5
+
## Steps to Extract Data from PDF in Console App
6
+
7
+
Step 1: Create a new .NET Core console application project.
8
+
9
+
Step 2: Install the [Syncfusion.SmartDataExtractor.Net.Core](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
10
+
11
+
Step 3: Include the following namespaces in the Program.cs file.
12
+
13
+
```csharp
14
+
usingSystem.IO;
15
+
usingSystem.Text;
16
+
usingSyncfusion.SmartDataExtractor;
17
+
18
+
```
19
+
20
+
Step 4: Add the following code snippet in Program.cs file to extract data from PDF.
21
+
22
+
```csharp
23
+
// Open the input PDF file as a stream.
24
+
using (FileStreamstream=newFileStream(Path.GetFullPath("Input.pdf"), FileMode.Open, FileAccess.ReadWrite))
25
+
{
26
+
// Initialize the Smart Data Extractor.
27
+
DataExtractorextractor=newDataExtractor();
28
+
// Extract form data as JSON.
29
+
stringdata=extractor.ExtractDataAsJson(stream);
30
+
// Save the extracted JSON data into an output file.
More information about Extract data from PDF can be refer in this [documentation](https://help.syncfusion.com/document-processing/data-extraction/smart-data-extractor/overview)section.
Copy file name to clipboardExpand all lines: Data-Extraction/Smart-Data-Extractor/Extract-data-as-md-from-PDF/.NET/Extract-data-as-md-from-PDF/Output/.gitkeep
The Syncfusion® Smart Data Extractor is a .NET library used to extract structured data and document elements from PDFs and images in Console Application.
4
+
5
+
## Steps to Extract Data from PDF in Console App
6
+
7
+
Step 1: Create a new .NET Core console application project.
8
+
9
+
Step 2: Install the [Syncfusion.SmartDataExtractor.Net.Core](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
10
+
11
+
Step 3: Include the following namespaces in the Program.cs file.
12
+
13
+
```csharp
14
+
usingSystem.IO;
15
+
usingSystem.Text;
16
+
usingSyncfusion.SmartDataExtractor;
17
+
18
+
```
19
+
20
+
Step 4: Add the following code snippet in Program.cs file to extract data from PDF.
21
+
22
+
```csharp
23
+
//Open the input PDF file as a stream.
24
+
using (FileStreamstream=newFileStream("Input.pdf", FileMode.Open, FileAccess.Read))
More information about Extract data from PDF can be refer in this [documentation](https://help.syncfusion.com/document-processing/data-extraction/smart-data-extractor/overview)section.
The Syncfusion® Smart Form Recognizer is a .NET C# library that detects and extracts structured form data from PDFs and images in Console Application.
4
+
5
+
## Steps to Extract Data from PDF in Console App
6
+
7
+
Step 1: Create a new .NET Core console application project.
8
+
9
+
Step 2: Install the [Syncfusion.SmartFormRecognizer.Net.Core](https://www.nuget.org/packages/Syncfusion.SmartFormRecognizer.Net.Core) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
10
+
11
+
Step 3: Include the following namespaces in the Program.cs file.
12
+
13
+
```csharp
14
+
usingSystem.IO;
15
+
usingSyncfusion.SmartFormRecognizer;
16
+
```
17
+
18
+
Step 4: Add the following code snippet in Program.cs file to extract data from PDF.
19
+
20
+
```csharp
21
+
// Read the input PDF file as stream.
22
+
using (FileStreaminputStream=newFileStream(Path.GetFullPath(@"Input.pdf"), FileMode.Open, FileAccess.ReadWrite))
More information about SmartFormRecognizer can be refer in this [documentation](https://help.syncfusion.com/document-processing/data-extraction/smart-form-recognizer/overview)section.
0 commit comments