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

Differences between the PDF Specifications and twain.h

Forums › TWAIN Classic › Differences between the PDF Specifications and twain.h

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 3 months ago by spike.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 4, 2013 at 8:02 am #22813 Reply
    shujaat
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    Hi everyone,

    Why are there so many differences between the constant values mentioned in twain.h and 2.1 specification document? E.g. the value of Capabilities.IUnits is 0x0102 in the header file, whereas it is 0x0103 in the specs (page 8-74). Which one is correct?

    January 7, 2013 at 3:06 am #25776 Reply
    si_ben
    Participant
    • Topics - 7
    • Replies - 22
    • Total Posts - 29

    I think it depends what your using. Twain.h is done in C++, the book may be referring to C# method. I think don’t quote me just at home checking out this stuff.

    January 8, 2013 at 8:48 pm #25777 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi shujaat – the twain.h distributed by the TWAIN Working Group is a C/C++ declaration file – there is no IUnits anywhere in it.

    There is an ICAP_UNITS defined as 0x0102 in twain.h. It is listed has having the value 0x0102 on 8-73 in the TWAIN 2.2 Spec.pdf.
    So I’m confused.

    Maybe take a look at the header of your .h file and find out who wrote it and what version it is, then post back here with that information.
    Also if you see a declaration that seems to differ from the TWAIN specification, make sure you tell us what version of the specification (so we can look at the same version), and ideally, cite the line – or at least the specific identifier you are talking about.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Differences between the PDF Specifications and twain.h
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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.