diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index f2bb1774f..667b88fb5 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -135,12 +135,7 @@ Features
  • - FAQ - + Troubleshooting and FAQ
  • @@ -165,12 +160,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..c0144cc59 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,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-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..9b08b4653 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.SmartTableExtractor.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.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..2a9254d26 --- /dev/null +++ b/Document-Processing/Data-Extraction/Smart-Data-Extractor/NET/troubleshooting.md @@ -0,0 +1,148 @@ +--- +title: Troubleshoot SmartDataExtractor in DataExtractor | Syncfusion +description: Troubleshooting steps and FAQs for Syncfusion SmartDataExtractor to resolve common errors in WPF and WinForms projects. +platform: document-processing +control: SmartDataExtractor +documentation: UG +--- + +# Troubleshooting and FAQ for Smart Data Extractor + +## ONNX file missing + + + + + + + + + + + + + +
    ExceptionBlink files are missing
    Reason +The required ONNX model files are not copied into the application’s build output. +
    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\net10.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. +

    +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). +- 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. +
    + +## System.TypeInitializationException + + + + + + + + + + + + + + +
    Exception +System.TypeInitializationException. +
    Reason +The application cannot load *System.Runtime.CompilerServices.Unsafe* or one of its dependencies.
    +**Inner Exception**: *FileNotFoundException* — Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. +
    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 **WPF** and **WinForms**. + +

    +Please refer to the below error message, +

    +System.TypeInitializationException: The type initializer for *PerTypeValues 1* threw an exception. +

    +
    + +## FileNotFoundException (Microsoft.ML.ONNXRuntime) + + + + + + + + + + + + + + + +
    Exception +FileNotFoundException (Microsoft.ML.ONNXRuntime) +
    Reason +The application cannot load the *Microsoft.ML.ONNXRuntime* assembly or one of its dependencies. +
    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 **WPF** and **WinForms**. +

    +Please refer to the below screenshot, +

    +System.IO.FileNotFoundException: Could not load file or assembly *Microsoft.ML.ONNXRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6* or one of its dependencies. The system cannot find the file specified. +Source=Syncfusion.SmartTableExtractor.Base +

    +
    + +## ONNXRuntimeException – Model File Not Found + + + + + + + + + + + + + + +
    Exception +Microsoft.ML.ONNXRuntime.ONNXRuntimeException +
    Reason +In a **.NET Framework MVC app**, NuGet sometimes doesn’t automatically copy native runtime dependencies (like *ONNXruntime.dll*) into the *bin* folder during publish. +
    Solution +In your MVC project file (.csproj), add a target to copy the native DLL from the NuGet package folder into bin: +

    + + + + +
    +{% 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..d9f7d8076 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 @@ -19,8 +19,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..e31364fb5 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.SmartDataExtractor.WinForms/)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.Wpf.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.Wpf.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.Wpf)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.AspNet.Mvc5.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.AspNet.Mvc5.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.AspNet.Mvc5)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.Net.Core.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.Net.Core.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.Net.Core)'| markdownify }}
    -{{'Syncfusion.SmartTableExtractor.NET.nupkg'| markdownify }} +{{'[Syncfusion.SmartTableExtractor.NET.nupkg](https://www.nuget.org/packages/Syncfusion.SmartDataExtractor.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..c462d12d8 --- /dev/null +++ b/Document-Processing/Data-Extraction/Smart-Table-Extractor/NET/troubleshooting.md @@ -0,0 +1,144 @@ +--- +title: Troubleshoot SmartTableExtractor in DataExtraction | Syncfusion +description: Troubleshooting steps and FAQs for Syncfusion SmartTableExtractor to help users resolve common issues in WPF and WinForms projects. +platform: document-processing +control: SmartTableExtractor +documentation: UG +--- + +# Troubleshooting and FAQ for Smart Table Extractor + +## ONNX file missing + + + + + + + + + + + + + +
    ExceptionBlink files are missing
    Reason +The required ONNX model files are not copied into the application’s build output. +
    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\net10.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. +
    + +## System.TypeInitializationException + + + + + + + + + + + + + + +
    Exception +System.TypeInitializationException. +
    Reason +The application cannot load *System.Runtime.CompilerServices.Unsafe* or one of its dependencies.
    +**Inner Exception**: *FileNotFoundException* — Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. +
    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 **WPF** and **WinForms**. + +

    +Please refer to the below error message, +

    +System.TypeInitializationException: The type initializer for *PerTypeValues 1* threw an exception. +

    +
    + +## FileNotFoundException (Microsoft.ML.ONNXRuntime) + + + + + + + + + + + + + + + +
    Exception +FileNotFoundException (Microsoft.ML.ONNXRuntime) +
    Reason +The application cannot load the *Microsoft.ML.ONNXRuntime* assembly or one of its dependencies. +
    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 **WPF** and **WinForms**. +

    +Please refer to the below screenshot, +

    +System.IO.FileNotFoundException: Could not load file or assembly *Microsoft.ML.ONNXRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6* or one of its dependencies. The system cannot find the file specified. +Source=Syncfusion.SmartTableExtractor.Base +

    +
    + +## ONNXRuntimeException – Model File Not Found + + + + + + + + + + + + + + +
    Exception +Microsoft.ML.ONNXRuntime.ONNXRuntimeException +
    Reason +In a **.NET Framework MVC app**, NuGet sometimes doesn’t automatically copy native runtime dependencies (like *ONNXruntime.dll*) into the *bin* folder during publish. +
    Solution +In your MVC project file (.csproj), add a target to copy the native DLL from the NuGet package folder into bin: +

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

    +
    +