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
<td>To overcome the exception, you can add read, write, and execute permissions for the temporary folder. Refer to the following code sample to set the temp folder.
249
253
<br><br/>
250
-
{% highlight %}
254
+
{% tabs %}
255
+
{% highlight C# tabtitle="C#" %}
251
256
252
257
BlinkConverterSettings settings = new BlinkConverterSettings();
253
258
settings.TempPath = "D://MyProject//bin";
254
259
255
260
{% endhighlight %}
261
+
{% endtabs %}
256
262
</td>
257
263
</tr>
258
264
@@ -330,7 +336,8 @@ Check the HTML file or URL is rendered properly in Chrome browser's print previe
@@ -362,12 +370,14 @@ RUN chmod +x /app/runtimes/linux/native/chrome && \
362
370
</th>
363
371
<td>To overcome this issue, add suitable delay for the conversion using the <ahref="https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_AdditionalDelay">AdditionalDelay</a> property of the HTMLConverter.
364
372
<br><br/>
365
-
{% highlight %}
373
+
{% tabs %}
374
+
{% highlight C# tabtitle="C#" %}
366
375
367
376
BlinkConverterSettings settings = new BlinkConverterSettings();
368
377
settings.AdditionalDelay = 4000;
369
378
370
379
{% endhighlight %}
380
+
{% endtabs %}
371
381
</td>
372
382
</tr>
373
383
@@ -431,12 +441,14 @@ Refer to this <a href="https://www.syncfusion.com/kb/10258/how-to-convert-html-t
431
441
</th>
432
442
<td>You can able to bypass the invalid SSL certificate errors using the command line arguments property of Blink converter settings.
433
443
<br><br/>
434
-
{% highlight %}
444
+
{% tabs %}
445
+
{% highlight C# tabtitle="C#" %}
435
446
436
447
BlinkConverterSettings settings = new BlinkConverterSettings();
2.Once Tesseract 5 is successfully installed, you can configure the path to the latest binaries by copying the location of the Tesseract folder and setting it as the Tesseract binaries path when setting up the OCR processor. Refer to the example code below:
201
205
<br><br/>
202
-
{% highlight %}
206
+
{% tabs %}
207
+
{% highlight C# %}
203
208
204
209
//Initialize the OCR processor by providing the path of tesseract binaries.
205
210
using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract/5.3.2/lib"))
206
211
207
212
{% endhighlight %}
213
+
{% endtabs %}
208
214
<br><br/>
209
215
210
216
3.Add the TessDataPath from bin folder. Refer to the example code below:
211
217
<br></br>
212
-
{% highlight c# tabtitle="C# [Cross-platform]" %}
218
+
{% tabs %}
219
+
{% highlight C# tabtitle="C# [Cross-platform]" %}
213
220
214
221
using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract/5.3.2/lib"))
215
222
{
@@ -232,6 +239,7 @@ using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract
232
239
}
233
240
234
241
{% endhighlight %}
242
+
{% endtabs %}
235
243
</td>
236
244
</tr>
237
245
</table>
@@ -253,38 +261,45 @@ using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract
253
261
<br><br/>
254
262
1. Install the leptonica.
255
263
<br>
256
-
{% highlight %}
264
+
{% tabs %}
265
+
{% highlight C# %}
257
266
258
267
sudo apt-get install libleptonica-dev
259
268
260
269
{% endhighlight %}
270
+
{% endtabs %}
261
271
<br><br>
262
272
<img src="OCR-Images/Install-leptonica.png">
263
273
<br><br>
264
274
2.Install the tesseract.
265
275
<br>
266
-
267
-
{% highlight %}
276
+
{% tabs %}
277
+
{% highlight C# %}
268
278
269
279
sudo apt-get install tesseract-ocr-eng
270
280
271
281
{% endhighlight %}
282
+
{% endtabs %}
272
283
<br><br>
273
284
<img src="OCR-Images/Install-tesseract.png">
274
285
<br><br>
275
286
3. Copy the binaries (liblept.so and libtesseract.so) to the missing files exception folder in the project location.
To resolve this problem, you should install all required dependencies in your Linux machine. Refer to the following steps to installing the missing dependencies.
309
324
310
325
Step 1: Execute the following command in terminal window to check dependencies are installed properly.
0 commit comments