Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, January 16, 2014 7:24:37 PM(UTC)

pieterB  
pieterB

Groups: Registered
Posts: 7


I am using Leadtools 18 .NET. I am converting a LTD file to Xls using the Convert function from a DocumentWriter instrance. How do I set the format level?

See native API reference: www.leadtools.com/help/l...pi/doc2_formatlevel.html


 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, January 18, 2014 3:42:06 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


In the help topic for "RESULTOPTIONS2", it is mentioned that if you pass anything except DOCUMENTFORMAT_USER to the structure, all the values in the structure including "FormatLevel" will be ignored.
So if you want to use DocumentWriter instance to save the OCR results, the "FormatLevel" value will be ignored.
If you want to set the FormatLevel value, you will have to save the result using OCR native formats and set "DOCUMENTFORMAT_USER" as the DocFormat.

 
#3 Posted : Sunday, January 19, 2014 8:52:36 PM(UTC)

pieterB  
pieterB

Groups: Registered
Posts: 7


On what .NET class do I set the DocFormat and where do I set the FormatLevel? Can I please get a one liner example of both?
 
#4 Posted : Monday, January 20, 2014 3:59:19 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


To set the FormatLevel for the engine in .NET, try the following code:
==========================
IOcrSettingManager settingManager = _ocrEngine.SettingManager;
// Change the format level to drop
string settingName = "SaveDocument.FormatLevel";
settingManager.SetEnumValue(settingName, "NoFormat");
==========================

You can find an example in help topic "IOcrSettingManager Interface".

For more information about engine specific settings, see help topic "OCR Engine-Specific Settings".

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.055 seconds.