TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

saving batch scanned files

Forums › TWAIN Classic › saving batch scanned files

  • This topic has 18 replies, 4 voices, and was last updated 11 years, 2 months ago by HOHXP.
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • Author
    Posts
  • November 17, 2007 at 11:24 am #22243 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    hello,
    i am currently developing a scan application using twain and want to save batch scanned files at runtime (during scanning)

    anybody here knows how this can be achieved.??

    November 18, 2007 at 5:49 am #24172 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    I think most posts here are related to projects saving images at runtime,.. that is a standard requirement for scanning software.

    Where are you having trouble?

    November 20, 2007 at 8:06 am #24173 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    i want to save multiple pages, 100 pages per minute lets say,
    so far the applictation i developed will save only 1 page, but where can i go from an interface i developed that asks for location where to save and what type to save (jpg or tiff).
    how will the application get the multiple images and save it where we want, will i be bringing the twain dialog every time, or one time or not at all ?
    these things i need to know pls reply.

    November 20, 2007 at 8:13 am #24174 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    depending on your transfer method (and assuming file transfer here just for kicks) you’d want to loop around your Control/SetupFileXfer/Set(SetupFile) &
    Image/ImageFileXfer/Get triplets where you stay in the loop until Control/PendingXfers/EndXfer(pxfr) says that there are no images left or until you get a failure (typical when when the device doesn’t known the paper count)

    .

    November 20, 2007 at 9:36 am #24175 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    yes, wants to start of first.
    from control to image and then saving every image at runtime to the directory mensioned by user earlier in a dialog.

    which functions and attributes will be used and a little descrioption also plsssss.
    will be very greatful. thanks

    November 20, 2007 at 9:41 am #24176 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    I’m not sure I understand, ask that again with different words.

    November 20, 2007 at 10:07 am #24177 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    i want to “scan and save” multiple images: saving every image as it is scanned.
    how shall i know that one image is scanned, now its second image’s turn? and so on.

    i want to select the settings one time:
    . save directory
    . image type
    . color type

    then wants to just click once on scan and it will start scanning and saving(runtime saving, indexed in the disk) all the images.

    November 20, 2007 at 10:37 am #24178 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    i m not sure which mode i will use ? buffered or disk file mode seems to be better than native.
    disk file seems to be even better for the applictaion, but i want to speed up also, so what do u say ?
    buffer mode or disk file mode ?

    i m not sure which to implement. what do u sujjest to be done ??? waiting for reply.

    November 23, 2007 at 3:52 am #24179 Reply
    Tommy Valentine
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    I also want to ask the same question.
    One page with one message posted will certainly slow down the scanner.

    November 28, 2007 at 10:05 pm #24180 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    >> how shall i know that one image is scanned, now its second image’s turn?

    you get a message, xferdone (in file and native mode) something else in buffered (I don’t use buffered mode). take a look thru the twain toolkit or better yet – step thru dosadi’s ctwain source.

    November 29, 2007 at 9:09 am #24181 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    ok we have passed through the multiple scan thing.
    now there comes another problem.
    when i scan in duplex mode and save in tiff format, the application should save both sides of the scanned paper (2 pages) in one tif file, but it makes two seperate tif files.
    how can i make adjustment to do that way,
    seems like i have to go inside hearder of tif or something ? pls help. thanks

    November 29, 2007 at 9:32 am #24182 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    multi image tiff isn’t define with in the current 1.9 twain spec.
    if you want mulditi image tif files you’ll have to play with gdi/gdi+

    the opentwain project does this in .net if you’re looking for a .net sample.

    .

    November 30, 2007 at 7:26 am #24183 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    yes we r working in .net in vc, pls identify where we can get help in opentwain, thanks

    November 30, 2007 at 7:29 am #24184 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    for help working with opentwain you ask me or ask on the project’s homepage or here or send me an email or open a chat ..

    .

    December 6, 2007 at 10:13 am #24185 Reply
    adjkl
    Participant
    • Topics - 1
    • Replies - 7
    • Total Posts - 8

    helo, is there any variable in CTWAIN that we can use as a flag to identify that whether the user selected simplex(single side scanned) or duplex(both sides scanned) or flat bed in the twain acquire dialog of scanner.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
Reply To: saving batch scanned files
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.