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

Imprinter / Endorser software development…

Forums › TWAIN Classic › Imprinter / Endorser software development…

  • This topic has 6 replies, 3 voices, and was last updated 2 years, 7 months ago by Anand.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 18, 2014 at 1:02 pm #22928 Reply
    hypnotic
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    Hi all,

    since that I’m developing an application that use the imprinter/endorser functionality, I was wondering if there exist any way to do some preliminary tests … without actually having a real scanner.

    Are there any kind of simulators / virtual scanners for doing that ?

    Thanks,
    Hyp

    March 18, 2014 at 3:45 pm #26100 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Howdy…

    The Kodak Alaris i5600 supports printing (this version is TWAIN 2.1 compliant, a 2.3 release isn’t out yet). Even though this is released as an ‘update’ it contains everything needed to install and run the TWAIN driver on a clean machine.
    http://download.kodak.com/docimaging/drivers/InstallSoftware_i5000_v1.23.exe

    If you run the ScanValidation (c:program files (x86)Kodakdocument imaging) tool it will offer to temporarily place you into simulator mode. Once up you can use it to raise the driver’s UI. Navigate through: Settings / Device / Diagnostics / Debug Tab. From there you can lock the simulator to stay on, and select the printer accessory. From that point on the driver will expose its printer capabilities. I recommend setting CAP_XFERCOUNT to a small number from your test program, so that when scanning the simulator doesn’t run forever.

    This driver supports a custom TWEI_HDR_PRINTERSTRING (included in the kdscust.h that comes with the Integrator’s Guide), for DAT_EXTIMAGEINFO, which is Kodak only, but functionally identical to the standard TWEI_PRINTERTEXT introduced in TWAIN 2.3, so you can test with that, if you like.
    http://graphics.kodak.com/DocImaging/uploadedFiles/kdsTwainIntegratorKitV3_5.zip

    Good luck…

    March 19, 2014 at 7:49 am #26101 Reply
    hypnotic
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    That’s an excellent start! 😀

    I’ll immediately have a look at it!

    Thank you MarkM!

    Hyp

    March 19, 2014 at 9:42 am #26102 Reply
    hypnotic
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    Hi MarkM,

    I did a quick test and the driver you suggested me seems to work perfectly. 😀

    … But now, I’ve just a small doubt 😉 …. This is what happens:

    – My program starts the scanning process.
    – The Kodak driver interface shows up.
    – I go into Settings –> Device –> Printer (tab) and what I can see is an empty (?) template. Now, if I create a template with ‘Message 1’, I can actually see the string I sent to the scanner imprinter.

    So, my doubt is…. is that supposed to be correct (and my string would be printed)? Or… am I missing something (because I need to set some kind of template) ?

    Thank you very much,
    Hyp

    March 19, 2014 at 11:51 am #26103 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Hi, Hyp…

    The Kodak driver is heavily customized for printing with a lot of features. TWAIN 2.3 is just catching up with it from a feature-set standpoint, but like I said that particular i5600 driver doesn’t reflect those capabilities yet (I doubt if many drivers do, since the Spec only came out a month ago).

    The UI dialog box you see is geared towards the Kodak way of managing a printer. You would see different behavior with other scanner vendors.

    What you should be able to do is negotiate the standard TWAIN capabilities (common to all vendors) by doing the following…

    set CAP_PRINTERENABLED to TRUE
    set CAP_PRINTERMODE to TWPM_SINGLESTRING
    set CAP_PRINTERSUFFIX to “dog”

    Then if you bring the driver’s user interface up you’ll see that you have one message that says “dog” in the printer tab. If you change “dog” to “cat” in the printer tab and click on OK to close the dialog (you don’t have to save the profile), and then do a get on CAP_PRINTERSUFFIX you will get back “cat”.

    If you did this with a real scanner, it would print “cat” on the sheets of paper. If you want to investigate the custom Kodak features, there’s an article all about it in the Integrator’s Guide that I pointed to in the last message.

    You may also want consider investigating the DAT_CUSTOMDSDATA / MSG_GET and MSG_SET operation to gain access to all the features of the scanner, both standard and custom. This technique works for any TWAIN driver that supports DAT_CUSTOMDSDATA and DAT_USERINTERFACE / MSG_ENABLEDSUIONLY. By leveraging off the driver’s UI and taking snapshots one can access the full capabilities of a TWAIN driver with minimal code…

    March 19, 2014 at 2:19 pm #26104 Reply
    hypnotic
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    Hi Mark,

    thank you very much for your explanations! 😀

    I still have a lot of work to do but I’m definitely more confident, now! 😉

    I’ll be back with the results! 😉

    Thanks again,
    Hyp

    May 25, 2018 at 8:24 am #30913 Reply
    Anand
    • Topics - 95
    • Replies - 183
    • Total Posts - 278

    Hi All,

    We need urgent help. We are working on imprinting requirement where we need to set imprinting text via Java Application.
    We are using Twain driver. we tried the below set of code to pass the imprint txt but it is not working. could you please assist

    Scanner: Fujitsu fi6670
    this.dwtObject.Capability = 4138;
    this.dwtObject.CapType = 1;
    this.dwtObject.CapValueString = “Imprint Me please”;

    Thanks
    Anand

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Imprinter / Endorser software development…
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

  • Hello world
  • 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
  • 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.