diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 23d1e9abe..d0d3b7542 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -151,12 +151,7 @@ Features
  • - FAQ - + Troubleshooting and FAQ
  • @@ -181,12 +176,7 @@ Features
  • - FAQ - + Troubleshooting and FAQ
  • diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/Assemblies-Required.md b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/Assemblies-Required.md index d4bc66006..1f36509a8 100644 --- a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/Assemblies-Required.md +++ b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/Assemblies-Required.md @@ -20,13 +20,13 @@ The following assemblies need to be referenced in your application based on the {{'WPF'| markdownify }}, - {{'Windows Forms'| markdownify }} and {{'ASP.NET MVC'| markdownify }} + {{'Windows Forms'| markdownify }} and {{'ASP.NET MVC'|  + markdownify }} Syncfusion.Compression.Base
    Syncfusion.ImagePreProcessor.Base
    Syncfusion.OCRProcessor.Base
    - Syncfusion.Pdf.Imaging.Base
    Syncfusion.Pdf.Base
    Syncfusion.PdfToImageConverter.Base
    Syncfusion.SmartFormRecognizer.Base
    diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-data-extractor.md b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-data-extractor.md deleted file mode 100644 index 945888eec..000000000 --- a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-data-extractor.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: FAQ for SmartDataExtractor | Syncfusion -description: This section provides answers to frequently asked questions about Syncfusion Smart Data Extractor, helping users resolve common issues. -platform: document-processing -control: SmartDataExtractor -documentation: UG -keywords: Assemblies ---- - -# How to resolve the “ONNX file missing” error in Smart Data Extractor - -Problem: - -When running Smart Data Extractor you may see an exception similar to the following: - -``` -Microsoft.ML.OnnxRuntime.OnnxRuntimeException: '[ErrorCode:NoSuchFile] Load model from \runtimes\models\syncfusion_doclayout.onnx failed. File doesn't exist' -``` - -Cause: - -This error occurs because the required ONNX model files (used internally for layout and data extraction) are not present in the application's build output (the project's `bin` runtime folder). The extractor expects the models under `runtimes\models` so the runtime can load them. - -Solution: - -1. Run a build so the application output is generated under `bin\Debug\netX.X\runtimes` (or your configured build configuration and target framework). -2. Locate the project's build output `bin` path (for example: `bin\Debug\net6.0\runtimes`). -3. Place all required ONNX model files into a `runtimes\models` folder inside that bin path. -4. In Visual Studio, for each ONNX file set **Properties → Copy to Output Directory → Copy always** so the model is included on every build. -5. Rebuild and run your project. The extractor should now find the ONNX models and operate correctly. - -Notes: - -- If you publish your application, ensure the `runtimes\models` folder and ONNX files are included in the publish output (you may need to mark files as content in the project file or use a entry). -- If you prefer an automated approach, add the ONNX files to your project with `CopyToOutputDirectory` set, or create a post-build step to copy the models into the runtime folder. - -If the problem persists after adding the model files, verify file permissions and the correctness of the model file names. \ No newline at end of file diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/NuGet-Packages-Required.md b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/NuGet-Packages-Required.md index 085420cae..caff6b27b 100644 --- a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/NuGet-Packages-Required.md +++ b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/NuGet-Packages-Required.md @@ -10,7 +10,7 @@ keywords: Assemblies ## Extract Structured data from PDF -To work with Smart Data Extractor, the following NuGet packages need to be installed in your application. +To work with Smart Data Extractor, the following NuGet packages need to be installed in your application from [nuget.org](https://www.nuget.org/). @@ -25,7 +25,7 @@ Windows Forms
    Console Application (Targeting .NET Framework) @@ -33,7 +33,7 @@ Console Application (Targeting .NET Framework) WPF @@ -41,7 +41,7 @@ WPF ASP.NET MVC5 @@ -50,7 +50,7 @@ ASP.NET Core (Targeting NET Core)
    Console Application (Targeting .NET Core)
    @@ -59,7 +59,7 @@ Windows UI (WinUI)
    .NET Multi-platform App UI (.NET MAUI)
    -{{'Syncfusion.SmartDataExtractor.WinForms.nupkg'| markdownify }} +{{'[Syncfusion.SmartDataExtractor.WinForms.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.WinForms/)'| markdownify }}
    -{{'Syncfusion.SmartDataExtractor.Wpf.nupkg'| markdownify }} +{{'[Syncfusion.SmartDataExtractor.Wpf.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.Wpf)'| markdownify }}
    -{{'Syncfusion.SmartDataExtractor.AspNet.Mvc5.nupkg'| markdownify }} +{{'[Syncfusion.SmartDataExtractor.AspNet.Mvc5.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.AspNet.Mvc5)'| markdownify }}
    -{{'Syncfusion.SmartDataExtractor.Net.Core.nupkg'| markdownify }} +{{'[Syncfusion.SmartDataExtractor.Net.Core.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.Net.Core)'| markdownify }}
    -{{'Syncfusion.SmartDataExtractor.NET.nupkg'| markdownify }} +{{'[Syncfusion.SmartDataExtractor.NET.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.NET)'| markdownify }}
    diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/data-extraction-images/onnx-table.png b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/data-extraction-images/onnx-table.png new file mode 100644 index 000000000..4e67e2820 Binary files /dev/null and b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/data-extraction-images/onnx-table.png differ diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/data-extraction-images/onnx.png b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/data-extraction-images/onnx.png new file mode 100644 index 000000000..11ff3f482 Binary files /dev/null and b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/data-extraction-images/onnx.png differ diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/faq.md b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/faq.md deleted file mode 100644 index ec6e8b8e9..000000000 --- a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/faq.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: FAQ for smart data extractor | Syncfusion -description: This page provides a link to the FAQ section for Syncfusion Smart Data Extractor, guiding users to answers for common questions. -platform: document-processing -control: SmartDataExtractor -documentation: UG -keywords: Assemblies ---- - -# Frequently Asked Questions in Data Extractor Library - -Common questions and answers for using the Syncfusion Data Extractor. - -* [How to Resolve the ONNX File Missing Error in Smart Data Extractor?](./FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-data-extractor) diff --git a/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/troubleshooting.md b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/troubleshooting.md new file mode 100644 index 000000000..f22a57f4e --- /dev/null +++ b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/troubleshooting.md @@ -0,0 +1,108 @@ +--- +title: Troubleshoot SmartDataExtractor in DataExtractor | Syncfusion +description: Troubleshooting steps and FAQs for Syncfusion SmartDataExtractor to resolve common errors in .NET Framework projects. +platform: document-processing +control: SmartDataExtractor +documentation: UG +--- + +# Troubleshooting and FAQ for Smart Data Extractor + +## ONNX file missing + + + + + + + + + + + + + +
    ExceptionONNX files are missing
    Reason +The required ONNX model files are not copied into the application’s build output. +
    Solution +Ensure that the runtimes folder is copied properly to bin folder of the application from NuGet package location. +

    +Please refer to the below screenshot, +

    +Runtime folder +

    +Notes: + +- If you publish your application, ensure the `runtimes\models` folder and ONNX files are included in the publish output (you may need to mark files as content in the project file or use a entry). + +
    + +## System.TypeInitializationException / FileNotFoundException – Microsoft.ML.ONNXRuntime + + + + + + + + + + + + + +
    Exception + +1. System.TypeInitializationException
    +2. FileNotFoundException (Microsoft.ML.ONNXRuntime) +
    Reason + +The required **Microsoft.ML.ONNXRuntime** NuGet package is not installed in your project. SmartDataExtractor depends on this package and its required assemblies to function properly. +

    +
    Solution +Install the NuGet package [Microsoft.ML.ONNXRuntime (Version 1.18.0)](https://www.nuget.org/packages/Microsoft.ML.ONNXRuntime/1.18.0) manually in your sample/project.
    +This package is required for **SmartDataExtractor** across .NET Framework projects. +

    +
    + +## ONNXRuntimeException – Model File Not Found + + + + + + + + + + + + + + +
    Exception +Microsoft.ML.ONNXRuntime.ONNXRuntimeException +
    Reason +The required native runtime library (ONNXRuntime.dll) is missing from your application's bin folder. +
    Solution +In your MVC project file (.csproj), add the following build target to copy the native DLL from the NuGet package folder to the bin folder: +

    + + + + +
    +{% tabs %} +{% highlight C# tabtitle="C#" %} + + + +{% endhighlight %} +{% endtabs %} +
    +

    +
    + diff --git a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/Assemblies-Required.md b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/Assemblies-Required.md index 3a74944a1..e88399385 100644 --- a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/Assemblies-Required.md +++ b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/Assemblies-Required.md @@ -20,7 +20,8 @@ The following assemblies need to be referenced in your application based on the {{'WPF'| markdownify }}, - {{'Windows Forms'| markdownify }} and {{'ASP.NET MVC'| markdownify }} + {{'Windows Forms'| markdownify }} and {{'ASP.NET MVC'|  + markdownify }} Syncfusion.Compression.Base
    diff --git a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-table-extractor.md b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-table-extractor.md deleted file mode 100644 index 892f1b175..000000000 --- a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-table-extractor.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Resolve onnx file missing in smart table extractor | Syncfusion -description: Learn how to resolve the missing ONNX file issue in Syncfusion Smart Table Extractor to ensure smooth setup and usage in .NET projects. -platform: document-processing -control: PDF -documentation: UG -keywords: Assemblies ---- - -# How to resolve the “ONNX file missing” error in Smart Table Extractor - -Problem: - -When running Smart Table Extractor you may see an exception similar to the following: - -``` -Microsoft.ML.OnnxRuntime.OnnxRuntimeException: '[ErrorCode:NoSuchFile] Load model from \runtimes\models\syncfusion_doclayout.onnx failed. File doesn't exist' -``` - -Cause: - -This error occurs because the required ONNX model files (used internally for layout and data extraction) are not present in the application's build output (the project's `bin` runtime folder). The extractor expects the models under `runtimes\models` so the runtime can load them. - -Solution: - -1. Run a build so the application output is generated under `bin\Debug\netX.X\runtimes` (or your configured build configuration and target framework). -2. Locate the project's build output `bin` path (for example: `bin\Debug\net6.0\runtimes`). -3. Place all required ONNX model files into a `runtimes\models` folder inside that bin path. -4. In Visual Studio, for each ONNX file set **Properties → Copy to Output Directory → Copy always** so the model is included on every build. -5. Rebuild and run your project. The extractor should now find the ONNX models and operate correctly. - -Notes: - -- If you publish your application, ensure the `runtimes\models` folder and ONNX files are included in the publish output (you may need to mark files as content in the project file or use a entry). -- If you prefer an automated approach, add the ONNX files to your project with `CopyToOutputDirectory` set, or create a post-build step to copy the models into the runtime folder. - -If the problem persists after adding the model files, verify file permissions and the correctness of the model file names. \ No newline at end of file diff --git a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/NuGet-Packages-Required.md b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/NuGet-Packages-Required.md index b43ad6b86..af443c5a3 100644 --- a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/NuGet-Packages-Required.md +++ b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/NuGet-Packages-Required.md @@ -10,7 +10,7 @@ keywords: Assemblies ## Extract Structured data from PDF -To work with Smart Table Extractor, the following NuGet packages need to be installed in your application. +To work with Smart Table Extractor, the following NuGet packages need to be installed in your application from [nuget.org](https://www.nuget.org/). @@ -25,7 +25,7 @@ Windows Forms
    Console Application (Targeting .NET Framework) @@ -33,7 +33,7 @@ Console Application (Targeting .NET Framework) WPF @@ -41,7 +41,7 @@ WPF ASP.NET MVC5 @@ -50,7 +50,7 @@ ASP.NET Core (Targeting NET Core)
    Console Application (Targeting .NET Core)
    @@ -59,7 +59,7 @@ Windows UI (WinUI)
    .NET Multi-platform App UI (.NET MAUI)
    -{{'Syncfusion.SmartTableExtractor.WinForms.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.WinForms.nupkg](https://www.nuget.org/packages/Syncfusion.SmartTableExtractor.WinForms/)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.Wpf.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.Wpf.nupkg](https://www.nuget.org/packages/Syncfusion.SmartTableExtractor.Wpf)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.AspNet.Mvc5.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.AspNet.Mvc5.nupkg](https://www.nuget.org/packages/Syncfusion.SmartTableExtractor.AspNet.Mvc5)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.Net.Core.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.Net.Core.nupkg](https://www.nuget.org/packages/Syncfusion.SmartTableExtractor.Net.Core)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.NET.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.NET.nupkg](https://www.nuget.org/packages/Syncfusion.SmartTableExtractor.NET)'| markdownify }}
    diff --git a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/data-extraction-images/onnx.png b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/data-extraction-images/onnx.png new file mode 100644 index 000000000..11ff3f482 Binary files /dev/null and b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/data-extraction-images/onnx.png differ diff --git a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/faq.md b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/faq.md deleted file mode 100644 index 33983cc97..000000000 --- a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/faq.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: FAQ for smart Table extractor| Syncfusion -description: This page serves as the link to the FAQ section for Syncfusion Smart Table Extractor, directing users to answers for common queries and issues. -platform: document-processing -control: PDF -documentation: UG -keywords: Assemblies ---- - -# Frequently Asked Questions in Smart Table Extractor - -Common questions and answers for using the Syncfusion Table Extraction. - -* [How to Resolve the ONNX File Missing Error in Smart Table Extractor?](./FAQ/how-to-resolve-the-onnx-file-missing-error-in-smart-table-extractor) diff --git a/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/troubleshooting.md b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/troubleshooting.md new file mode 100644 index 000000000..500f50577 --- /dev/null +++ b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/troubleshooting.md @@ -0,0 +1,108 @@ +--- +title: Troubleshoot SmartTableExtractor in DataExtraction | Syncfusion +description: Troubleshooting steps and FAQs for Syncfusion SmartTableExtractor to help users resolve common issues in .NET Framework projects. +platform: document-processing +control: SmartTableExtractor +documentation: UG +--- + +# Troubleshooting and FAQ for Smart Table Extractor + +## ONNX file missing + + + + + + + + + + + + + +
    ExceptionONNX files are missing
    Reason +The required ONNX model files are not copied into the application’s build output. +
    Solution +Ensure that the runtimes folder is copied properly to bin folder of the application from NuGet package location. +

    +Please refer to the below screenshot, +

    +Runtime folder +

    +Notes: + +- If you publish your application, ensure the `runtimes\models` folder and ONNX files are included in the publish output (you may need to mark files as content in the project file or use a entry). + +
    + +## System.TypeInitializationException / FileNotFoundException – Microsoft.ML.ONNXRuntime + + + + + + + + + + + + + +
    Exception + +1. System.TypeInitializationException
    +2. FileNotFoundException (Microsoft.ML.ONNXRuntime) +
    Reason + +The required **Microsoft.ML.ONNXRuntime** NuGet package is not installed in your project. SmartTableExtractor depends on this package and its required assemblies to function properly. +

    +
    Solution +Install the NuGet package [Microsoft.ML.ONNXRuntime (Version 1.18.0)](https://www.nuget.org/packages/Microsoft.ML.ONNXRuntime/1.18.0) manually in your sample/project.
    +This package is required for **SmartTableExtractor** across .NET Framework projects. +

    +
    + +## ONNXRuntimeException – Model File Not Found + + + + + + + + + + + + + + +
    Exception +Microsoft.ML.ONNXRuntime.ONNXRuntimeException +
    Reason +The required native runtime library (ONNXRuntime.dll) is missing from your application's bin folder. +
    Solution +In your MVC project file (.csproj), add the following build target to copy the native DLL from the NuGet package folder to the bin folder: +

    + + + + +
    +{% tabs %} +{% highlight C# tabtitle="C#" %} + + + +{% endhighlight %} +{% endtabs %} +
    +

    +
    +