This property sets the size of the paper. This property is only enabled when using a custom-built user interface (UiMode=2).
Property Value
Value | Explanation | Size |
---|---|---|
0 | User defined size | |
1 | A4 | 210mm x 297mm |
2 | JIS B5 | 182mm x 257mm |
3 | US letter | 8.5" x 11.0" (216mm x 280mm) |
4 | US legal | 11.0" x 17.0" (216mm x 356mm) |
5 | A5 | 148mm x 210mm |
6 | ISO B4 | 250mm x 353mm |
7 | ISO B6 | 125mm x 176mm |
9 | US ledger | 11.0" x 17.0" (280mm x 432mm) |
10 | US executive | 7.25" x 10.5" (184mm x 267mm) |
11 | A3 | 297mm x 420mm |
12 | ISO B3 | 353mm x 500mm |
13 | A6 | 105mm x 148mm |
14 | C4 | 229mm x 324mm |
15 | C5 | 162mm x 229mm |
16 | C6 | 114mm x 162mm |
17 | 4A0 | 1682mm x 2378mm |
18 | 2A0 | 1189mm x 1682mm |
19 | A0 | 841mm x 1189mm |
20 | A1 | 594mm x 841mm |
21 | A2 | 420mm x 594mm |
22 | A7 | 74mm x 105mm |
23 | A8 | 52mm x 74mm |
24 | A9 | 37mm x 52mm |
25 | A10 | 26mm x 37mm |
26 | ISO B0 | 1000mm x 1414mm |
27 | ISO B1 | 707mm x 1000mm |
28 | ISO B2 | 500mm x 707mm |
29 | ISO B5 | 176mm x 250mm |
30 | ISO B7 | 88mm x 125mm |
31 | ISO B8 | 62mm x 88mm |
32 | ISO B9 | 44mm x 62mm |
33 | ISO B10 | 31mm x 44mm |
34 | JIS B0 | 1030mm x 1456mm |
35 | JIS B1 | 728mm x 1030mm |
36 | JIS B2 | 515mm x 728mm |
37 | JIS B3 | 364mm x 515mm |
38 | JIS B4 | 257mm x 364mm |
39 | JIS B6 | 128mm x 182mm |
40 | JIS B7 | 91mm x 128mm |
41 | JIS B8 | 64mm x 91mm |
42 | JIS B9 | 45mm x 64mm |
43 | JIS B10 | 32mm x 45mm |
44 | C0 | 917mm x 1297mm |
45 | C1 | 648mm x 917mm |
46 | C2 | 458mm x 648mm |
47 | C3 | 324mm x 458mm |
48 | C7 | 81mm x 114mm |
49 | C8 | 57mm x 81mm |
50 | C9 | 40mm x 57mm |
51 | C10 | 28mm x 40mm |
52 | US statement | 5.5" x 8.5" (140mm x 216mm) |
53 | Business card | 90mm x 55mm |
54 | Maximum Size | |
1000 | Undefined |
In Visual Basic the following constants can be used: (ikScanUserSize = 0, ikScanA4LETTER = 1, ikScanB5LETTER = 2, ikScanUSLETTER = 3, ikScanUSLEGAL = 4, ikScanA5 = 5, ikScanB4 = 6, ikScanB6 = 7, ikScanUSLEDGER = 9, ikScanUSEXECUTIVE = 10, ikScanA3 = 11, ikScanB3 = 12, ikScanA6 = 13, ikScanC4 = 14, ikScanC5 = 15, ikScanC6 = 16, ikScan4A0 = 17, ikScan2A0 = 18, ikScanA0 = 19, ikScanA1 = 20, ikScanA2 = 21, ikScanA4 = 1, ikScanA7 = 22, ikScanA8 = 23, ikScanA9 = 24, ikScanA10 = 25, ikScanISOB0 = 26, ikScanISOB1 = 27, ikScanISOB2 = 28, ikScanISOB3 = 12, ikScanISOB4 = 6, ikScanISOB5 = 29, ikScanISOB6 = 7, ikScanISOB7 = 30, ikScanISOB8 = 31, ikScanISOB9 = 32, ikScanISOB10 = 33, ikScanJISB0 = 34, ikScanJISB1 = 35, ikScanJISB2 = 36, ikScanJISB3 = 37, ikScanJISB4 = 38, ikScanJISB5 = 2, ikScanJISB6 = 39, ikScanJISB7 = 40, ikScanJISB8 = 41, ikScanJISB9 = 42, ikScanJISB10 = 43, ikScanC0 = 44, ikScanC1 = 45, ikScanC2 = 46, ikScanC3 = 47, ikScanC7 = 48, ikScanC8 = 49, ikScanC9 = 50, ikScanC10 = 51, ikScanUSSTATEMENT = 52, ikScanBUSINESSCARD = 53, ikScanBUSINESSCARD = 54, ikScanUndefinedSize = 1000).
Explanation
The PaperSize property sets the size of thepaper. This property is enabled when the UiMode property is 2 (ikScanNONUI). However this property is disabled when using a digital camera. To enable the RectLeft, RectTop, RectRight, and RectBottom properties, set the PaperSize property to 0 or less.
Depending on the datasource (scan driver), using a user defined paper size (0) and setting the scan area, may still result in a start position of the scan being incorrect. If that is the case, please use one of the above constant values (1 or more) for the paper size and set this to a NEGATIVE value. (Please refer to the example code below).
Example Code
(The PaperSize is set to 0 and the scan area is set but the scan position is wrong)
ImageKit1.Scan.UiMode = ikScanNONUI
ImageKit1.Scan.UnitMode = ikScanCM
ImageKit1.Scan.PaperSize = 0
ImageKit1.Scan.RectLeft = 0
ImageKit1.Scan.RectTop = 0
ImageKit1.Scan.RectRight = 6.9
ImageKit1.Scan.RectBottom = 10.2
(The PaperSize is set to one of the above constants with a NEGATIVE value -> the scan position is correct)
ImageKit1.Scan.UiMode = ikScanNONUI
ImageKit1.Scan.UnitMode = ikScanCM
ImageKit1.Scan.PaperSize = -3 ' US Letter size
ImageKit1.Scan.RectLeft = 0
ImageKit1.Scan.RectTop = 0
ImageKit1.Scan.RectRight = 6.9
ImageKit1.Scan.RectBottom = 10.2
Note: Please set the PaperSize property to a size supported by the datasource (scan driver) or set it to the largest supported paper size. With some datasources the PaperSize property has no effect. Please refer to the scan manufacturer for details.
The possible PaperSize settings supported by a scan device can be retrieved using the GetCapEnum or the GetCapEnumVariant method. For scan devices that only support a fixed paper size or do not support paper size settings set this property to 0.
When PaperSize is set to "undefined" (1000), the paper size is automatically detected then the document is scanned, however, with scanners that can only detect one dimension (either height or width) there are cases when the automatic detection does not work properly. To find out if "Undefined" paper size is supported by the datasource, please execute the IsCapSupported or the IsCapSupportedVariant method.
Setting this value
This value can be set at runtime.
Retrieving this value
This value cannot be retrieved.