Hi,
I want to know that how can I use TwainPaperSize Enumeration at Client Side while using the TwainSetConfig method. I can use the Twain capabilities easily. Below is the code, how I am using it in. So, just like that how can I use TwainPaperSize with it also.
DocuViewareAPI.TwainSetConfig(docuViewareId
, true
, true
, resolution
, 24
, enableDuplex
, true
, [{ capability: DocuViewareAPI.TwainCapabilities.ICAP_AUTOBRIGHT, value: autoBrightness }
, { capability: DocuViewareAPI.TwainCapabilities.ICAP_BRIGHTNESS, value: brightness }
, { capability: DocuViewareAPI.TwainCapabilities.ICAP_CONTRAST, value: contrast }
, { capability: DocuViewareAPI.TwainCapabilities.ICAP_AUTODISCARDBLANKPAGES, value: discartBlankPages }
]
);
Use TwainPaperSize in JavaScript
Re: Use TwainPaperSize in JavaScript
Hello,
Here an example to set the paper size:
Here is the enum:
With best,
Fabio
Here an example to set the paper size:
Code: Select all
DocuViewareAPI.TwainSetConfig("DocuVieware1", true, true, 200, 24, false, true, [{ capability: DocuViewareAPI.TwainCapabilities.ICAP_SUPPORTEDSIZES, value: "1" }]);
Code: Select all
NONE = 0
A4LETTER = 1
B5LETTER = 2
USLETTER = 3
USLEGAL = 4
A5 = 5
B4 = 6
B6 = 7
USLEDGER = 9
USEXECUTIVE = 10
A3 = 11
B3 = 12
A6 = 13
C4 = 14
C5 = 15
C6 = 16
A04 = 17
A02 = 18
A0 = 19
A1 = 20
A2 = 21
A4 = 1
A7 = 22
A8 = 23
A9 = 24
A10 = 25
ISOB0 = 26
ISOB1 = 27
ISOB2 = 28
ISOB3 = 12
ISOB4 = 6
ISOB5 = 29
ISOB6 = 7
ISOB7 = 30
ISOB8 = 31
ISOB9 = 32
ISOB10 = 33
JISB0 = 34
JISB1 = 35
JISB2 = 36
JISB3 = 37
JISB4 = 38
JISB5 = 2
JISB6 = 39
JISB7 = 40
JISB8 = 41
JISB9 = 42
JISB10 = 43
C0 = 44
C1 = 45
C2 = 46
C3 = 47
C7 = 48
C8 = 49
C9 = 50
C10 = 51
USSTATEMENT = 52
BUSINESSCARD = 53
Fabio
Re: Use TwainPaperSize in JavaScript
Thank you so much for the response.
Who is online
Users browsing this forum: No registered users and 1 guest