Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions File-Formats/PDF/Working-with-OCR/Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
55 changes: 55 additions & 0 deletions File-Formats/PDF/Working-with-OCR/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,61 @@ cp /usr/lib/x86_64-linux-gnu/libtesseract.so.4 /home/syncfusion/linuxdockersampl

{% endhighlight %}
<br/>
</td>
</tr>
</table>


## OCR not working on Linux: Exception has been thrown by the target of an invocation

<table>
<th style="font-size:14px" width="100px">Issue</th>
<th style="font-size:14px">Syncfusion.Pdf.PdfException: Exception has been thrown by the target of an invocation" in the Linux machine.</th>
<tr>
<th style="font-size:14px" width="100px">Reason
</th>
<td>The problem occurs due to the missing prerequisites dependencies on your Linux machine.
</td>
</tr>
<tr>
<th style="font-size:14px" width="100px">Solution</th>
<td>
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 %}

</td>
</tr>
</table>