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 : Wednesday, April 29, 2015 10:46:12 AM(UTC)

mesa  
mesa

Groups: Registered
Posts: 23


Is there a way to set the starting image number when using acquirefast?

I need to use the same base name and call acquirefast multiple times to scan more documents. Acquirefast always restarts the image number at 1 so I end up overwriting previous scans.

Using V19 and C#.
 

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 : Thursday, April 30, 2015 12:16:56 PM(UTC)

Nick  
Nick

Groups: Registered, Tech Support, Administrators
Posts: 163

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

Hello,

Each time you call AcquireFast(), the internal counter for pages would reset. You could subscribe to AcquireMultiPage Event, and this would give you the page number for each page that is scanned, but I do not believe this is what you are referring to.

The file name that you pass into the AquireFast() method is the file that will be written. Part of the speed gain from Fast TWAIN is the fact that the best settings are used for each scan, and when saving to file, the compression is done in the hardware. So LEADTOOLS does not control that. LEADTOOLS indicates what the file name is that should be created, but the scanner itself handles the writing of the file. Furthermore, the TWAIN specifications dictate that when the source is writing to a file (with file transfer mode enabled), it should create the file if it does not exist or overwrite the file if it does exist. There isn't any option within TWAIN for appending to an existing file.

If you need to append scans together, you could either look at using a feed loader if the scanner hardware has one, or you could create multiple files with similar base file names (as temporary files). After scanning has completed, you could then combine these files together with RasterCodecs.Load() & Save(). There's a demo that ships with the LEADTOOLS SDK illustrating two ways how files can be combined together. It can be found through the shortcuts here:

[LEADTOOLS 19]\Shortcuts\File Formats\.NET Class Libraries\Multipage Conversions
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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.061 seconds.