Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long document mode #17

Open
petrjac opened this issue Mar 22, 2021 · 1 comment
Open

Long document mode #17

petrjac opened this issue Mar 22, 2021 · 1 comment

Comments

@petrjac
Copy link

petrjac commented Mar 22, 2021

Please, how I can set long document mode for receipts?

I was trying sending with Alaris S2070:

...
{
   "attribute":"cropping",
   "values":[
      {
         "exception":"fail",
         "value":"long"
      }
   ]
},
...

But this returns error:

{
  "kind": "twainlocalscanner",
  "commandId": "bbcc76c2-998f-4426-8e00-d0fd213199c5",
  "method": "sendTask",
  "results": {
    "success": false,
    "code": "invalidJson",
    "characterOffset": 60
  }
}
@mlmcl62
Copy link
Contributor

mlmcl62 commented Mar 24, 2021

Oddly enough TWAIN doesn't have a standard way to specify long documents (or relative cropping, for that matter). There's a placeholder in the Bridge in case that's ever added. What you should probably do is contact the scanner vendor to see if they have any plans to support TWAIN Direct in their TWAIN driver. Then you'd have access to all of the features of the scanner, instead of depending on what the Bridge is capable of parsing.

I'm going to leave this open as a reminder that it would be nice to update TWAIN to support this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants