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

what’s the best way to scan a ‘custom paper size’

Forums › TWAIN Classic › what’s the best way to scan a ‘custom paper size’

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 12 months ago by dpenney.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 21, 2014 at 6:16 pm #22909 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    What would you TWAIN experts – and driver writers 😉 – recommend as best practice for an application that wants to scan a custom (non-standard) sized piece of paper?

    ICAP_SUPPORTEDSIZES is an enumeration, so if it isn’t in the list (or the scanner doesn’t list it) – I can’t specify my paper size that way.
    For example, suppose I want to scan 4″ x 3″ cards. Or 7.75″ x 12.5″…

    I could set ICAP_SUPPORTEDSIZES to 0(TWSS_NONE) and then set the ROI to my paper size.
    In theory that means select the largest possible paper size, but I’m worried that some scanners will interpret TWSS_NONE to mean 8.5×11 in US, and A4 elsewhere.

    I feel like I’ve read comments on this somewhere, but I had no luck searching on this forum.
    I may even have asked this question myself before! What can I say, my mind is going. I can feel it.

    January 21, 2014 at 8:44 pm #26059 Reply
    dpenney
    Participant
    • Topics - 3
    • Replies - 66
    • Total Posts - 69

    @spike wrote:

    What would you TWAIN experts – and driver writers 😉 – recommend as best practice for an application that wants to scan a custom (non-standard) sized piece of paper?

    Hi Spike,

    You should use DAT_IMAGELAYOUT not ICAP_SUPPORTEDSIZES to set a custom scan area. All DS’s are required to support DAT_IMAGELAYOUT.

    Note that scanners with feeders may require special consideration. ICAP_SUPPORTEDSIZES takes care of the feeder alignment but DAT_IMAGELAYOUT does not. This is not an issue if you always scan the full width. Otherwise, you’ll need to read CAP_FEEDERALIGNMENT and align the scan area accordingly.

    Doug
    –

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: what’s the best way to scan a ‘custom paper size’
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

  • Girls of Desire: All babes in one place, crazy, art
  • 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.
  • 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.