-P

Top  Previous  Next

-P value        

 

Specifies the paper size to use when acquiring the images. Default is letter (8.5" x 11"). The TWAIN device must support acquiring to the chosen paper size. For example, some TWAIN devices do not support legal (8.5" x 14") paper sizes or A4.

 

Example:  Acquire to A4 paper size:

DTWAIN_TwainSave("-P A4 -F gif -f mygif.gif");

 

Acquire to US legal paper size:

DTWAIN_TwainSave("-P legal -F gif -f mygif.gif");

 

Some devices that are not paper oriented (for example, digital cameras and scanners that are software-based) can have the value option set to none as the paper size.  If the value is none, then the resulting page size is dependent on the driver.

 

To determine beforehand the various paper sizes that are supported, it is recommended that you generate a detail listing of the installed device to see the various paper sizes supported.

 

Default Setting:

letter

 


DTWAIN_TwainSave supports most of the ISO paper sizes, the United States paper sizes, and the JIS (Japanese Industrial Standards) sizes.  Please note that the support that is actually given depends on what your particular device supports.

 

The table below shows the DTWAIN_TwainSave -P value for each page type, as well as the measurement in inches and millimeters for each type

 

The United States paper sizes supported are below:

 

-P

value

in x in

mm x mm

letter

8½ x 11

216 x 279

legal

8½ x 14

216 x 356

ledger

11 x 17

279 x 432

executive

7¼ x 10½

184 x 267

statement

5½ x 8½

140 x 216

business

2 x 3½

51 x 89

 

The 'A' series of paper sizes supported is listed below:
         

-P

value

in x in

mm x mm

A0

33.1 x 46.8

841 x 1189

A1

23.4 x 33.1

594 x 841

A2

16.5 x 23.4

420 x 594

A3

11.7 x 16.5

297 x 420

A4

8.3 x 11.7

210 x 297

A5

5.8 x 8.3

148 x 210

A6

4.1 x 5.8

105 x 148

A7

2.9 x 4.1

74 x 105

A8

2.0 x 2.9

52 x 74

A9

1.5 x 2.0

37 x 52

A10

1.0 x 1.5

26 x 37

 

 

The 'B' Series of paper sizes is listed below:                
 

-P

value

in x in

mm x mm

B0

39.4 x 55.7

1000 x 1414

B1

27.8 x 39.4

707 x 1000

B2

19.7 x 27.8

500 x 707

B3

13.9 x 19.7

353 x 500

B4

9.8 x 13.9

250 x 353

B5

6.9 x 9.8

176 x 250

B6

4.9 x 6.9

125 x 176

B7

3.5 x 4.9

88 x 125

B8

2.4 x 3.5

62 x 88

B9

1.7 x 2.4

40 x 57

B10

1.2 x 1.7

31 x 44

 

 

The 'C' Series of paper sizes is listed below:                
 

-P

value

in x in

mm x mm

C0

36.1 x 51.1

917 x 1297

C1

25.5 x 36.1

648 x 917

C2

18.0 x 25.5

458 x 648

C3

12.8 x 18.0

324 x 458

C4

9.0 x 12.8

229 x 324

C5

6.4 x 9.0

162 x 229

C6

4.5 x 6.4

114 x 162

C7

3.2 x 4.5

81 x 114

C8

2.2 x 3.2

57 x 81

C9

1.6 x 2.2

40 x 57

C10

1.1 x 1.6

28 x 40

 

 

The JIS paper sizes are listed below:

 

-P

value

in x in

mm x mm

JISB0

40.6 x 57.3

1030 x 1456

JISB1

28.7 x 40.6

728 x 1030

JISB2

20.3 x 28.7

515 x 728

JISB3

14.3 x 20.3

364 x 515

JISB4

10.1 x 14.3

257 x 364

JISB5

7.2 x 10.1

182 x 257

JISB6

5.0 x 7.2

128 x 182

JISB7

3.6 x 5.0

91 x 128

JISB8

2.5 x 3.6

64 x 91

JISB9

1.8 x 2.5

45 x 64

JISB10

1.3 x 1.8

32 x 45

 

 
Two of the German extensions are supported:

 

-P

value

in x in

mm x mm

4A0

66.2 x 93.6

1682 x 2378

2A0

46.8 x 66.2

1189 x 1682