Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Blank page setting
Started by Vasu Ram at 05-06-2008 15:41. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  05-06-2008, 15:41
Vasu Ram is not online. Last active: 5/12/2008 6:36:49 PM Vasu Ram

Not Ranked
Joined on 04-15-2008
Posts 6
Blank page setting
Reply Quote
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
   Report 
  05-07-2008, 8:08
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Blank page setting
Reply Quote

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.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  05-07-2008, 10:53
Vasu Ram is not online. Last active: 5/12/2008 6:36:49 PM Vasu Ram

Not Ranked
Joined on 04-15-2008
Posts 6
Re: Blank page setting
Reply Quote
Thanks.

But, is there a twain capability for blank page detection preference - like there are ones available for duplex setting, rotation angle etc ?.

   Report 
  05-08-2008, 10:01
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Blank page setting
Reply Quote

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.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  05-12-2008, 11:47
Vasu Ram is not online. Last active: 5/12/2008 6:36:49 PM Vasu Ram

Not Ranked
Joined on 04-15-2008
Posts 6
Re: Blank page setting
Reply Quote
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.
   Report 
  05-12-2008, 13:38
Vasu Ram is not online. Last active: 5/12/2008 6:36:49 PM Vasu Ram

Not Ranked
Joined on 04-15-2008
Posts 6
Re: Blank page setting
Reply Quote
It further seems that the ICAP_AUTODISCARDBLANKPAGES setting is not listed as a TwainCapabilityType in Leadtools.
   Report 
  05-13-2008, 10:57
Qasem Lubani is not online. Last active: 11/9/2008 3:40:25 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,135
Re: Blank page setting
Reply Quote

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
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » Blank page setting

Powered by Community Server, by Telligent Systems