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

looking for duplex sample code

Forums › TWAIN Classic › looking for duplex sample code

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by peterp.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 24, 2010 at 3:36 pm #22633 Reply
    jimh@minnetonkaaudio.com
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Hi, I’m new to TWAIN and I’m writing an application that needs to work with a duplex scanner.

    None of the TWAIN code samples I’ve found actually reads 2 images from the scanner. I’ve searched this forum and its archives, and found bits of information on CAP_XFERCOUNT, MSG_XFEREADY etc., but it’s hard to to put these disconnected pieces together.

    Can anyone point me to some code that actually reads the front and back images after a scan?

    Thanks,

    Jim Hughes

    September 28, 2010 at 6:19 pm #25334 Reply
    peterp
    Participant
    • Topics - 0
    • Replies - 30
    • Total Posts - 30

    If the scanner reports that CAP_DUPLEX is supported, and you set CAP_DUPLEXENABLED before scanning, getting the front and back side of the document is the same as getting multiple documents.

    You can use TWEI_PAGESIDE to get extended image info at the end of state 7 to determine if the image you just got came from the front or the back side of the document.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: looking for duplex sample code
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.