diff --git a/File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md b/File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md index 785a670e9..f03701a6a 100644 --- a/File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md +++ b/File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md @@ -657,8 +657,6 @@ To resolve this issue, we can add inline styles in element. However, we have att {% tabs %} -Code sample: - {% highlight c# tabtitle="C#" %} HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); diff --git a/File-Formats/PDF/Working-with-OCR/Linux.md b/File-Formats/PDF/Working-with-OCR/Linux.md index fef4a88a8..68742a6bf 100644 --- a/File-Formats/PDF/Working-with-OCR/Linux.md +++ b/File-Formats/PDF/Working-with-OCR/Linux.md @@ -21,6 +21,7 @@ sudo apt-get install libc6-dev {% endhighlight %} + ## Steps to convert HTML to PDF in .NET Core application on Linux Step 1: Execute the following command in the Linux terminal to create a new .NET Core Console application. diff --git a/File-Formats/PDF/Working-with-OCR/Troubleshooting.md b/File-Formats/PDF/Working-with-OCR/Troubleshooting.md index 66be789c2..98c7f884e 100644 --- a/File-Formats/PDF/Working-with-OCR/Troubleshooting.md +++ b/File-Formats/PDF/Working-with-OCR/Troubleshooting.md @@ -286,6 +286,61 @@ cp /usr/lib/x86_64-linux-gnu/libtesseract.so.4 /home/syncfusion/linuxdockersampl {% endhighlight %}
+ + + + + +## OCR not working on Linux: Exception has been thrown by the target of an invocation + + + + + + + + + + +
IssueSyncfusion.Pdf.PdfException: Exception has been thrown by the target of an invocation" in the Linux machine.
Reason +The problem occurs due to the missing prerequisites dependencies on your Linux machine. +
Solution +To resolve this problem, you should install all required dependencies in your Linux machine. Refer to the following steps to installing the missing dependencies. + +Step 1: Execute the following command in terminal window to check dependencies are installed properly. + +{% highlight %} + + ldd liblept1753.so + ldd libSyncfusionTesseract.so + +{% endhighlight %} + +Run the following commands in terminal +Step 1: + +{% highlight %} + + sudo apt-get install libleptonica-dev libjpeg62 + +{% endhighlight %} + +Step 2: + +{% highlight %} + + ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5 + +{% endhighlight %} + +Step 3: + +{% highlight %} + + ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so + +{% endhighlight %} +
\ No newline at end of file