Using TwainSession.SaveTemplate to Save a Subset of Settings

Posted on 2016-10-07 10:51:41 by Greg

Saving the settings of your TWAIN device is a very important feature which is fully supported by LEADTOOLS. For the end-user, it allows them to load and save different scanning profiles and options they use on a regular basis such as "high resolution color photo", "medium quality black and white document", or "auto-cropped receipt". One caveat to this feature is that it saves all of the settings, which comes with a few downsides:

  1. Large template files
  2. Longer execution time
  3. Most importantly...That template file will only work on one scanner

To alleviate these problems, LEADTOOLS now has a new overload for its TwainSession.SaveTemplateFile function which allows you to save a subset of settings rather than the entire collection. As long as you are saving core, mandatory settings that are supported by all TWAIN scanners, you can use these templates regardless of the hardware device being used!

Continue Reading...
LEADTOOLS Blog

LEADTOOLS Powered by Apryse,the Market Leading PDF SDK,All Rights Reserved