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 : Tuesday, May 6, 2008 10:36:41 AM(UTC)
Vasu Ram

Groups: Registered
Posts: 6


Hello,

I understand how the actual blank page detection process works( using raster image apis) but how can I store the blank page detection preference within the twain session ?. I want to build a settings screen where user will have the option of turning on/off the blank page detection preference.
If the preference is on, every image will then pass through a blank page test.If not, even blank images will be retrieved/displayed.

Thanks
Vasu
 

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 : Wednesday, May 7, 2008 3:03:50 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


Vasu,


Do you
mean you want to store an additional flag for page detection into the Twain template saved by LEADTOOLS Twain template functions?


If yes,
the template save and load functions only save the Twain driver's capability
values, and do not allow adding other data there, such as your own flag that determines whether to turn on or off your own blank page detection code.


 


If you want to save such settings, you must use your own file to store them.
 
#3 Posted : Wednesday, May 7, 2008 5:48:56 AM(UTC)
Vasu Ram

Groups: Registered
Posts: 6


Thanks.

But, is there a twain capability for blank page detection preference - like there are ones available for duplex setting, rotation angle etc ?.
 
#4 Posted : Thursday, May 8, 2008 4:56:33 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


You can do that by setting the ICAP_AUTODISCARDBLANKPAGES. However, this depends on whether the scanner driver supports the capability or not. More information on the capability is available in the Twain Standard document.
 
#5 Posted : Monday, May 12, 2008 6:42:07 AM(UTC)
Vasu Ram

Groups: Registered
Posts: 6


Doesn't LeadTools provide a blank page detection preference ?
My code is in C#. Can you point me to some sample C# code that interfaces with ICAP capabilties ?

Thanks.
 
#6 Posted : Monday, May 12, 2008 8:33:15 AM(UTC)
Vasu Ram

Groups: Registered
Posts: 6


It further seems that the ICAP_AUTODISCARDBLANKPAGES setting is not listed as a TwainCapabilityType in Leadtools.
 
#7 Posted : Tuesday, May 13, 2008 5:52:05 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


This capability was removed from the Twain standard header file in version 1.9.


However, if your driver supports it, it will probably be listed as a custom capability with number (1134)hex = (4404)decimal
 
#8 Posted : Sunday, January 18, 2009 11:07:35 PM(UTC)

delemed  
delemed

Groups: Registered
Posts: 12


How do I work with this custom capabilities? My scanner supports this feature and I would like to handle this with the Leadtools twain session.
Can you maybe give me some sample code for setting up this custom capability?

Thanks a lot!
 
#9 Posted : Monday, January 19, 2009 12:59:26 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Can you tell me which version of LEADTOOLS (v14,v15, v16, etc) are you using? Also, which LEADTOOLS programming interface (DLL API, C++ Class library ,.NET classes, etc.) you are using?
 
#10 Posted : Monday, January 19, 2009 1:20:38 AM(UTC)

delemed  
delemed

Groups: Registered
Posts: 12


sorry, my fault
Leadtools V15 .Net Class Libraries
 
#11 Posted : Monday, January 19, 2009 3:31:37 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Please see the following forum post that shows how to Get\Set custom capabilities:
http://support.leadtools.com/SupportPortal/CS/forums/3277/ShowPost.aspx

The forum shows how to do that in LEADTOOLS version 14.5 .NET, which is not different than LEADTOOLS v15 .NET.
 
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.104 seconds.