--  dtwain_constants.lua
-- 
--  This file is part of the Dynarithmic TWAIN Library (DTWAIN).                          
--  Copyright (c) 2002-2026 Dynarithmic Software.                                         
--                                                                                        
--  Licensed under the Apache License, Version 2.0 (the "License");                       
--  you may not use this file except in compliance with the License.                      
--  You may obtain a copy of the License at                                               
--                                                                                        
--      http://www.apache.org/licenses/LICENSE-2.0                                        
--                                                                                        
--  Unless required by applicable law or agreed to in writing, software                   
--  distributed under the License is distributed on an "AS IS" BASIS,                     
--  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.              
--  See the License for the specific language governing permissions and                   
--  limitations under the License.                                                        
--                                                                                        
--  FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY                   
--  DYNARITHMIC SOFTWARE. DYNARITHMIC SOFTWARE DISCLAIMS THE WARRANTY OF NON INFRINGEMENT 
--  OF THIRD PARTY RIGHTS.                                                                


local dtwain_constants = {}
   dtwain_constants.DTWAIN_FF_TIFF = 0
   dtwain_constants.DTWAIN_FF_PICT = 1
   dtwain_constants.DTWAIN_FF_BMP = 2
   dtwain_constants.DTWAIN_FF_XBM = 3
   dtwain_constants.DTWAIN_FF_JFIF = 4
   dtwain_constants.DTWAIN_FF_FPX = 5
   dtwain_constants.DTWAIN_FF_TIFFMULTI = 6
   dtwain_constants.DTWAIN_FF_PNG = 7
   dtwain_constants.DTWAIN_FF_SPIFF = 8
   dtwain_constants.DTWAIN_FF_EXIF = 9
   dtwain_constants.DTWAIN_FF_PDF = 10
   dtwain_constants.DTWAIN_FF_JP2 = 11
   dtwain_constants.DTWAIN_FF_JPX = 13
   dtwain_constants.DTWAIN_FF_DEJAVU = 14
   dtwain_constants.DTWAIN_FF_PDFA = 15
   dtwain_constants.DTWAIN_FF_PDFA2 = 16
   dtwain_constants.DTWAIN_FF_PDFRASTER = 17
   dtwain_constants.DTWAIN_CP_NONE = 0
   dtwain_constants.DTWAIN_CP_PACKBITS = 1
   dtwain_constants.DTWAIN_CP_GROUP31D = 2
   dtwain_constants.DTWAIN_CP_GROUP31DEOL = 3
   dtwain_constants.DTWAIN_CP_GROUP32D = 4
   dtwain_constants.DTWAIN_CP_GROUP4 = 5
   dtwain_constants.DTWAIN_CP_JPEG = 6
   dtwain_constants.DTWAIN_CP_LZW = 7
   dtwain_constants.DTWAIN_CP_JBIG = 8
   dtwain_constants.DTWAIN_CP_PNG = 9
   dtwain_constants.DTWAIN_CP_RLE4 = 10
   dtwain_constants.DTWAIN_CP_RLE8 = 11
   dtwain_constants.DTWAIN_CP_BITFIELDS = 12
   dtwain_constants.DTWAIN_CP_ZIP = 13
   dtwain_constants.DTWAIN_CP_JPEG2000 = 14
   dtwain_constants.DTWAIN_FS_NONE = 0
   dtwain_constants.DTWAIN_FS_A4LETTER = 1
   dtwain_constants.DTWAIN_FS_B5LETTER = 2
   dtwain_constants.DTWAIN_FS_USLETTER = 3
   dtwain_constants.DTWAIN_FS_USLEGAL = 4
   dtwain_constants.DTWAIN_FS_A5 = 5
   dtwain_constants.DTWAIN_FS_B4 = 6
   dtwain_constants.DTWAIN_FS_B6 = 7
   dtwain_constants.DTWAIN_FS_USLEDGER = 9
   dtwain_constants.DTWAIN_FS_USEXECUTIVE = 10
   dtwain_constants.DTWAIN_FS_A3 = 11
   dtwain_constants.DTWAIN_FS_B3 = 12
   dtwain_constants.DTWAIN_FS_A6 = 13
   dtwain_constants.DTWAIN_FS_C4 = 14
   dtwain_constants.DTWAIN_FS_C5 = 15
   dtwain_constants.DTWAIN_FS_C6 = 16
   dtwain_constants.DTWAIN_FS_4A0 = 17
   dtwain_constants.DTWAIN_FS_2A0 = 18
   dtwain_constants.DTWAIN_FS_A0 = 19
   dtwain_constants.DTWAIN_FS_A1 = 20
   dtwain_constants.DTWAIN_FS_A2 = 21
   dtwain_constants.DTWAIN_FS_A4 = DTWAIN_FS_A4LETTER
   dtwain_constants.DTWAIN_FS_A7 = 22
   dtwain_constants.DTWAIN_FS_A8 = 23
   dtwain_constants.DTWAIN_FS_A9 = 24
   dtwain_constants.DTWAIN_FS_A10 = 25
   dtwain_constants.DTWAIN_FS_ISOB0 = 26
   dtwain_constants.DTWAIN_FS_ISOB1 = 27
   dtwain_constants.DTWAIN_FS_ISOB2 = 28
   dtwain_constants.DTWAIN_FS_ISOB3 = DTWAIN_FS_B3
   dtwain_constants.DTWAIN_FS_ISOB4 = DTWAIN_FS_B4
   dtwain_constants.DTWAIN_FS_ISOB5 = 29
   dtwain_constants.DTWAIN_FS_ISOB6 = DTWAIN_FS_B6
   dtwain_constants.DTWAIN_FS_ISOB7 = 30
   dtwain_constants.DTWAIN_FS_ISOB8 = 31
   dtwain_constants.DTWAIN_FS_ISOB9 = 32
   dtwain_constants.DTWAIN_FS_ISOB10 = 33
   dtwain_constants.DTWAIN_FS_JISB0 = 34
   dtwain_constants.DTWAIN_FS_JISB1 = 35
   dtwain_constants.DTWAIN_FS_JISB2 = 36
   dtwain_constants.DTWAIN_FS_JISB3 = 37
   dtwain_constants.DTWAIN_FS_JISB4 = 38
   dtwain_constants.DTWAIN_FS_JISB5 = DTWAIN_FS_B5LETTER
   dtwain_constants.DTWAIN_FS_JISB6 = 39
   dtwain_constants.DTWAIN_FS_JISB7 = 40
   dtwain_constants.DTWAIN_FS_JISB8 = 41
   dtwain_constants.DTWAIN_FS_JISB9 = 42
   dtwain_constants.DTWAIN_FS_JISB10 = 43
   dtwain_constants.DTWAIN_FS_C0 = 44
   dtwain_constants.DTWAIN_FS_C1 = 45
   dtwain_constants.DTWAIN_FS_C2 = 46
   dtwain_constants.DTWAIN_FS_C3 = 47
   dtwain_constants.DTWAIN_FS_C7 = 48
   dtwain_constants.DTWAIN_FS_C8 = 49
   dtwain_constants.DTWAIN_FS_C9 = 50
   dtwain_constants.DTWAIN_FS_C10 = 51
   dtwain_constants.DTWAIN_FS_USSTATEMENT = 52
   dtwain_constants.DTWAIN_FS_BUSINESSCARD = 53
   dtwain_constants.DTWAIN_ANYSUPPORT = (-1)
   dtwain_constants.DTWAIN_BMP = 100
   dtwain_constants.DTWAIN_JPEG = 200
   dtwain_constants.DTWAIN_PDF = 250
   dtwain_constants.DTWAIN_PDFMULTI = 251
   dtwain_constants.DTWAIN_PCX = 300
   dtwain_constants.DTWAIN_DCX = 301
   dtwain_constants.DTWAIN_TGA = 400
   dtwain_constants.DTWAIN_TIFFLZW = 500
   dtwain_constants.DTWAIN_TIFFNONE = 600
   dtwain_constants.DTWAIN_TIFFG3 = 700
   dtwain_constants.DTWAIN_TIFFG4 = 800
   dtwain_constants.DTWAIN_TIFFPACKBITS = 801
   dtwain_constants.DTWAIN_TIFFDEFLATE = 802
   dtwain_constants.DTWAIN_TIFFJPEG = 803
   dtwain_constants.DTWAIN_TIFFJBIG = 804
   dtwain_constants.DTWAIN_TIFFPIXARLOG = 805
   dtwain_constants.DTWAIN_TIFFNONEMULTI = 900
   dtwain_constants.DTWAIN_TIFFG3MULTI = 901
   dtwain_constants.DTWAIN_TIFFG4MULTI = 902
   dtwain_constants.DTWAIN_TIFFPACKBITSMULTI = 903
   dtwain_constants.DTWAIN_TIFFDEFLATEMULTI = 904
   dtwain_constants.DTWAIN_TIFFJPEGMULTI = 905
   dtwain_constants.DTWAIN_TIFFLZWMULTI = 906
   dtwain_constants.DTWAIN_TIFFJBIGMULTI = 907
   dtwain_constants.DTWAIN_TIFFPIXARLOGMULTI = 908
   dtwain_constants.DTWAIN_WMF = 850
   dtwain_constants.DTWAIN_EMF = 851
   dtwain_constants.DTWAIN_GIF = 950
   dtwain_constants.DTWAIN_PNG = 1000
   dtwain_constants.DTWAIN_PSD = 2000
   dtwain_constants.DTWAIN_JPEG2000 = 3000
   dtwain_constants.DTWAIN_POSTSCRIPT1 = 4000
   dtwain_constants.DTWAIN_POSTSCRIPT2 = 4001
   dtwain_constants.DTWAIN_POSTSCRIPT3 = 4002
   dtwain_constants.DTWAIN_POSTSCRIPT1MULTI = 4003
   dtwain_constants.DTWAIN_POSTSCRIPT2MULTI = 4004
   dtwain_constants.DTWAIN_POSTSCRIPT3MULTI = 4005
   dtwain_constants.DTWAIN_TEXT = 6000
   dtwain_constants.DTWAIN_TEXTMULTI = 6001
   dtwain_constants.DTWAIN_TIFFMULTI = 7000
   dtwain_constants.DTWAIN_ICO = 8000
   dtwain_constants.DTWAIN_ICO_VISTA = 8001
   dtwain_constants.DTWAIN_ICO_RESIZED = 8002
   dtwain_constants.DTWAIN_WBMP = 8500
   dtwain_constants.DTWAIN_WEBP = 8501
   dtwain_constants.DTWAIN_PPM = 10000
   dtwain_constants.DTWAIN_WBMP_RESIZED = 11000
   dtwain_constants.DTWAIN_TGA_RLE = 11001
   dtwain_constants.DTWAIN_BMP_RLE = 11002
   dtwain_constants.DTWAIN_BIGTIFFLZW = 11003
   dtwain_constants.DTWAIN_BIGTIFFLZWMULTI = 11004
   dtwain_constants.DTWAIN_BIGTIFFNONE = 11005
   dtwain_constants.DTWAIN_BIGTIFFNONEMULTI = 11006
   dtwain_constants.DTWAIN_BIGTIFFPACKBITS = 11007
   dtwain_constants.DTWAIN_BIGTIFFPACKBITSMULTI = 11008
   dtwain_constants.DTWAIN_BIGTIFFDEFLATE = 11009
   dtwain_constants.DTWAIN_BIGTIFFDEFLATEMULTI = 11010
   dtwain_constants.DTWAIN_BIGTIFFG3 = 11011
   dtwain_constants.DTWAIN_BIGTIFFG3MULTI = 11012
   dtwain_constants.DTWAIN_BIGTIFFG4 = 11013
   dtwain_constants.DTWAIN_BIGTIFFG4MULTI = 11014
   dtwain_constants.DTWAIN_BIGTIFFJPEG = 11015
   dtwain_constants.DTWAIN_BIGTIFFJPEGMULTI = 11016
   dtwain_constants.DTWAIN_JPEGXR = 12000
   dtwain_constants.DTWAIN_SVG = 13000
   dtwain_constants.DTWAIN_SVGZ = 13001
   dtwain_constants.DTWAIN_INCHES = 0
   dtwain_constants.DTWAIN_CENTIMETERS = 1
   dtwain_constants.DTWAIN_PICAS = 2
   dtwain_constants.DTWAIN_POINTS = 3
   dtwain_constants.DTWAIN_TWIPS = 4
   dtwain_constants.DTWAIN_PIXELS = 5
   dtwain_constants.DTWAIN_MILLIMETERS = 6
   dtwain_constants.DTWAIN_USENAME = 16
   dtwain_constants.DTWAIN_USEPROMPT = 32
   dtwain_constants.DTWAIN_USELONGNAME = 64
   dtwain_constants.DTWAIN_USESOURCEMODE = 128
   dtwain_constants.DTWAIN_USELIST = 256
   dtwain_constants.DTWAIN_CREATE_DIRECTORY = 512
   dtwain_constants.DTWAIN_NODELETEDIBS = 1024
   dtwain_constants.DTWAIN_CREATEDIRECTORY = DTWAIN_CREATE_DIRECTORY
   dtwain_constants.DTWAIN_ARRAYANY = 1
   dtwain_constants.DTWAIN_ArrayTypePTR = 1
   dtwain_constants.DTWAIN_ARRAYLONG = 2
   dtwain_constants.DTWAIN_ARRAYFLOAT = 3
   dtwain_constants.DTWAIN_ARRAYHANDLE = 4
   dtwain_constants.DTWAIN_ARRAYSOURCE = 5
   dtwain_constants.DTWAIN_ARRAYSTRING = 6
   dtwain_constants.DTWAIN_ARRAYFRAME = 7
   dtwain_constants.DTWAIN_ARRAYBOOL = DTWAIN_ARRAYLONG
   dtwain_constants.DTWAIN_ARRAYLONGSTRING = 8
   dtwain_constants.DTWAIN_ARRAYUNICODESTRING = 9
   dtwain_constants.DTWAIN_ARRAYLONG64 = 10
   dtwain_constants.DTWAIN_ARRAYANSISTRING = 11
   dtwain_constants.DTWAIN_ARRAYWIDESTRING = 12
   dtwain_constants.DTWAIN_ARRAYULONG = 13
   dtwain_constants.DTWAIN_ARRAYTWFIX32 = 200
   dtwain_constants.DTWAIN_ArrayTypeINVALID = 0
   dtwain_constants.DTWAIN_ARRAYINT16 = 100
   dtwain_constants.DTWAIN_ARRAYUINT16 = 110
   dtwain_constants.DTWAIN_ARRAYUINT32 = 120
   dtwain_constants.DTWAIN_ARRAYINT32 = 130
   dtwain_constants.DTWAIN_ARRAYINT64 = 140
   dtwain_constants.DTWAIN_ARRAYUINT64 = 150
   dtwain_constants.DTWAIN_ARRAYSHORTINT16 = 160
   dtwain_constants.DTWAIN_ARRAYSHORTUINT16 = 170
   dtwain_constants.DTWAIN_RANGELONG = DTWAIN_ARRAYLONG
   dtwain_constants.DTWAIN_RANGEFLOAT = DTWAIN_ARRAYFLOAT
   dtwain_constants.DTWAIN_RANGEMIN = 0
   dtwain_constants.DTWAIN_RANGEMAX = 1
   dtwain_constants.DTWAIN_RANGESTEP = 2
   dtwain_constants.DTWAIN_RANGEDEFAULT = 3
   dtwain_constants.DTWAIN_RANGECURRENT = 4
   dtwain_constants.DTWAIN_FRAMELEFT = 0
   dtwain_constants.DTWAIN_FRAMETOP = 1
   dtwain_constants.DTWAIN_FRAMERIGHT = 2
   dtwain_constants.DTWAIN_FRAMEBOTTOM = 3
   dtwain_constants.DTWAIN_FIX32WHOLE = 0
   dtwain_constants.DTWAIN_FIX32FRAC = 1
   dtwain_constants.DTWAIN_JC_NONE = 0
   dtwain_constants.DTWAIN_JC_JSIC = 1
   dtwain_constants.DTWAIN_JC_JSIS = 2
   dtwain_constants.DTWAIN_JC_JSXC = 3
   dtwain_constants.DTWAIN_JC_JSXS = 4
   dtwain_constants.DTWAIN_CAPDATATYPE_UNKNOWN = (-10)
   dtwain_constants.DTWAIN_JCBP_JSIC = 5
   dtwain_constants.DTWAIN_JCBP_JSIS = 6
   dtwain_constants.DTWAIN_JCBP_JSXC = 7
   dtwain_constants.DTWAIN_JCBP_JSXS = 8
   dtwain_constants.DTWAIN_FEEDPAGEON = 1
   dtwain_constants.DTWAIN_CLEARPAGEON = 2
   dtwain_constants.DTWAIN_REWINDPAGEON = 4
   dtwain_constants.DTWAIN_AppOwnsDib = 1
   dtwain_constants.DTWAIN_SourceOwnsDib = 2
   dtwain_constants.DTWAIN_CONTARRAY = 8
   dtwain_constants.DTWAIN_CONTENUMERATION = 16
   dtwain_constants.DTWAIN_CONTONEVALUE = 32
   dtwain_constants.DTWAIN_CONTRANGE = 64
   dtwain_constants.DTWAIN_CONTDEFAULT = 0
   dtwain_constants.DTWAIN_CAPGET = 1
   dtwain_constants.DTWAIN_CAPGETCURRENT = 2
   dtwain_constants.DTWAIN_CAPGETDEFAULT = 3
   dtwain_constants.DTWAIN_CAPSET = 6
   dtwain_constants.DTWAIN_CAPRESET = 7
   dtwain_constants.DTWAIN_CAPRESETALL = 8
   dtwain_constants.DTWAIN_CAPSETAVAILABLE = 8
   dtwain_constants.DTWAIN_CAPSETCURRENT = 16
   dtwain_constants.DTWAIN_CAPGETHELP = 9
   dtwain_constants.DTWAIN_CAPGETLABEL = 10
   dtwain_constants.DTWAIN_CAPGETLABELENUM = 11
   dtwain_constants.DTWAIN_CAPSETCONSTRAINT = 12
   dtwain_constants.DTWAIN_AREASET = DTWAIN_CAPSET
   dtwain_constants.DTWAIN_AREARESET = DTWAIN_CAPRESET
   dtwain_constants.DTWAIN_AREACURRENT = DTWAIN_CAPGETCURRENT
   dtwain_constants.DTWAIN_AREADEFAULT = DTWAIN_CAPGETDEFAULT
   dtwain_constants.DTWAIN_VER15 = 0
   dtwain_constants.DTWAIN_VER16 = 1
   dtwain_constants.DTWAIN_VER17 = 2
   dtwain_constants.DTWAIN_VER18 = 3
   dtwain_constants.DTWAIN_VER20 = 4
   dtwain_constants.DTWAIN_VER21 = 5
   dtwain_constants.DTWAIN_VER22 = 6
   dtwain_constants.DTWAIN_ACQUIREALL = (-1)
   dtwain_constants.DTWAIN_MAXACQUIRE = (-1)
   dtwain_constants.DTWAIN_DX_NONE = 0
   dtwain_constants.DTWAIN_DX_1PASSDUPLEX = 1
   dtwain_constants.DTWAIN_DX_2PASSDUPLEX = 2
   dtwain_constants.DTWAIN_PT_BW = 0
   dtwain_constants.DTWAIN_PT_GRAY = 1
   dtwain_constants.DTWAIN_PT_RGB = 2
   dtwain_constants.DTWAIN_PT_PALETTE = 3
   dtwain_constants.DTWAIN_PT_CMY = 4
   dtwain_constants.DTWAIN_PT_CMYK = 5
   dtwain_constants.DTWAIN_PT_YUV = 6
   dtwain_constants.DTWAIN_PT_YUVK = 7
   dtwain_constants.DTWAIN_PT_CIEXYZ = 8
   dtwain_constants.DTWAIN_PT_DEFAULT = 1000
   dtwain_constants.DTWAIN_CURRENT = (-2)
   dtwain_constants.DTWAIN_DEFAULT = (-1)
   dtwain_constants.DTWAIN_FLOATDEFAULT = (-9999.0)
   dtwain_constants.DTWAIN_CallbackERROR = 1
   dtwain_constants.DTWAIN_CallbackMESSAGE = 2
   dtwain_constants.DTWAIN_USENATIVE = 1
   dtwain_constants.DTWAIN_USEBUFFERED = 2
   dtwain_constants.DTWAIN_USECOMPRESSION = 4
   dtwain_constants.DTWAIN_USEMEMFILE = 8
   dtwain_constants.DTWAIN_FAILURE1 = (-1)
   dtwain_constants.DTWAIN_FAILURE2 = (-2)
   dtwain_constants.DTWAIN_DELETEALL = (-1)
   dtwain_constants.DTWAIN_TN_ACQUIREDONE = 1000
   dtwain_constants.DTWAIN_TN_ACQUIREFAILED = 1001
   dtwain_constants.DTWAIN_TN_ACQUIRECANCELLED = 1002
   dtwain_constants.DTWAIN_TN_ACQUIRESTARTED = 1003
   dtwain_constants.DTWAIN_TN_PAGECONTINUE = 1004
   dtwain_constants.DTWAIN_TN_PAGEFAILED = 1005
   dtwain_constants.DTWAIN_TN_PAGECANCELLED = 1006
   dtwain_constants.DTWAIN_TN_TRANSFERREADY = 1009
   dtwain_constants.DTWAIN_TN_TRANSFERDONE = 1010
   dtwain_constants.DTWAIN_TN_ACQUIREPAGEDONE = 1010
   dtwain_constants.DTWAIN_TN_UICLOSING = 3000
   dtwain_constants.DTWAIN_TN_UICLOSED = 3001
   dtwain_constants.DTWAIN_TN_UIOPENED = 3002
   dtwain_constants.DTWAIN_TN_UIOPENING = 3003
   dtwain_constants.DTWAIN_TN_UIOPENFAILURE = 3004
   dtwain_constants.DTWAIN_TN_CLIPTRANSFERDONE = 1014
   dtwain_constants.DTWAIN_TN_INVALIDIMAGEFORMAT = 1015
   dtwain_constants.DTWAIN_TN_ACQUIRETERMINATED = 1021
   dtwain_constants.DTWAIN_TN_TRANSFERSTRIPREADY = 1022
   dtwain_constants.DTWAIN_TN_TRANSFERSTRIPDONE = 1023
   dtwain_constants.DTWAIN_TN_TRANSFERSTRIPFAILED = 1029
   dtwain_constants.DTWAIN_TN_IMAGEINFOERROR = 1024
   dtwain_constants.DTWAIN_TN_TRANSFERCANCELLED = 1030
   dtwain_constants.DTWAIN_TN_FILESAVECANCELLED = 1031
   dtwain_constants.DTWAIN_TN_FILESAVEOK = 1032
   dtwain_constants.DTWAIN_TN_FILESAVEERROR = 1033
   dtwain_constants.DTWAIN_TN_FILEPAGESAVEOK = 1034
   dtwain_constants.DTWAIN_TN_FILEPAGESAVEERROR = 1035
   dtwain_constants.DTWAIN_TN_PROCESSEDDIB = 1036
   dtwain_constants.DTWAIN_TN_FEEDERLOADED = 1037
   dtwain_constants.DTWAIN_TN_GENERALERROR = 1038
   dtwain_constants.DTWAIN_TN_MANDUPFLIPPAGES = 1040
   dtwain_constants.DTWAIN_TN_MANDUPSIDE1DONE = 1041
   dtwain_constants.DTWAIN_TN_MANDUPSIDE2DONE = 1042
   dtwain_constants.DTWAIN_TN_MANDUPPAGECOUNTERROR = 1043
   dtwain_constants.DTWAIN_TN_MANDUPACQUIREDONE = 1044
   dtwain_constants.DTWAIN_TN_MANDUPSIDE1START = 1045
   dtwain_constants.DTWAIN_TN_MANDUPSIDE2START = 1046
   dtwain_constants.DTWAIN_TN_MANDUPMERGEERROR = 1047
   dtwain_constants.DTWAIN_TN_MANDUPMEMORYERROR = 1048
   dtwain_constants.DTWAIN_TN_MANDUPFILEERROR = 1049
   dtwain_constants.DTWAIN_TN_MANDUPFILESAVEERROR = 1050
   dtwain_constants.DTWAIN_TN_ENDOFJOBDETECTED = 1051
   dtwain_constants.DTWAIN_TN_EOJDETECTED = 1051
   dtwain_constants.DTWAIN_TN_EOJDETECTED_XFERDONE = 1052
   dtwain_constants.DTWAIN_TN_QUERYPAGEDISCARD = 1053
   dtwain_constants.DTWAIN_TN_PAGEDISCARDED = 1054
   dtwain_constants.DTWAIN_TN_PROCESSDIBACCEPTED = 1055
   dtwain_constants.DTWAIN_TN_PROCESSDIBFINALACCEPTED = 1056
   dtwain_constants.DTWAIN_TN_CLOSEDIBFAILED = 1057
   dtwain_constants.DTWAIN_TN_INVALID_TWAINDSM2_BITMAP = 1058
   dtwain_constants.DTWAIN_TN_IMAGE_RESAMPLE_FAILURE = 1059
   dtwain_constants.DTWAIN_TN_DEVICEEVENT = 1100
   dtwain_constants.DTWAIN_TN_TWAINPAGECANCELLED = 1105
   dtwain_constants.DTWAIN_TN_TWAINPAGEFAILED = 1106
   dtwain_constants.DTWAIN_TN_APPUPDATEDDIB = 1107
   dtwain_constants.DTWAIN_TN_FILEPAGESAVING = 1110
   dtwain_constants.DTWAIN_TN_EOJBEGINFILESAVE = 1112
   dtwain_constants.DTWAIN_TN_EOJENDFILESAVE = 1113
   dtwain_constants.DTWAIN_TN_CROPFAILED = 1120
   dtwain_constants.DTWAIN_TN_PROCESSEDDIBFINAL = 1121
   dtwain_constants.DTWAIN_TN_BLANKPAGEDETECTED1 = 1130
   dtwain_constants.DTWAIN_TN_BLANKPAGEDETECTED2 = 1131
   dtwain_constants.DTWAIN_TN_BLANKPAGEDETECTED3 = 1132
   dtwain_constants.DTWAIN_TN_BLANKPAGEDISCARDED1 = 1133
   dtwain_constants.DTWAIN_TN_BLANKPAGEDISCARDED2 = 1134
   dtwain_constants.DTWAIN_TN_OCRTEXTRETRIEVED = 1140
   dtwain_constants.DTWAIN_TN_QUERYOCRTEXT = 1141
   dtwain_constants.DTWAIN_TN_PDFOCRREADY = 1142
   dtwain_constants.DTWAIN_TN_PDFOCRDONE = 1143
   dtwain_constants.DTWAIN_TN_PDFOCRERROR = 1144
   dtwain_constants.DTWAIN_TN_SETCALLBACKINIT = 1150
   dtwain_constants.DTWAIN_TN_SETCALLBACK64INIT = 1151
   dtwain_constants.DTWAIN_TN_FILENAMECHANGING = 1160
   dtwain_constants.DTWAIN_TN_FILENAMECHANGED = 1161
   dtwain_constants.DTWAIN_TN_PROCESSEDAUDIOFINAL = 1180
   dtwain_constants.DTWAIN_TN_PROCESSAUDIOFINALACCEPTED = 1181
   dtwain_constants.DTWAIN_TN_PROCESSEDAUDIOFILE = 1182
   dtwain_constants.DTWAIN_TN_TWAINTRIPLETBEGIN = 1183
   dtwain_constants.DTWAIN_TN_TWAINTRIPLETEND = 1184
   dtwain_constants.DTWAIN_TN_FEEDERNOTLOADED = 1201
   dtwain_constants.DTWAIN_TN_FEEDERTIMEOUT = 1202
   dtwain_constants.DTWAIN_TN_FEEDERNOTENABLED = 1203
   dtwain_constants.DTWAIN_TN_FEEDERNOTSUPPORTED = 1204
   dtwain_constants.DTWAIN_TN_FEEDERTOFLATBED = 1205
   dtwain_constants.DTWAIN_TN_PREACQUIRESTART = 1206
   dtwain_constants.DTWAIN_TN_TRANSFERTILEREADY = 1300
   dtwain_constants.DTWAIN_TN_TRANSFERTILEDONE = 1301
   dtwain_constants.DTWAIN_TN_FILECOMPRESSTYPEMISMATCH = 1302
   dtwain_constants.DTWAIN_TN_SOURCEDETAILS = 1304
   dtwain_constants.DTWAIN_TN_QUERYACQUIREPAGES = 1305
   dtwain_constants.DTWAIN_TN_ACQUIREPAGESSTOPPING = 1306
   dtwain_constants.DTWAIN_TN_ACQUIREPAGESSTOPPED = 1307
   dtwain_constants.DTWAIN_TN_QUERYUPDATEDIBORIG = 1308
   dtwain_constants.DTWAIN_TN_QUERYUPDATEDIBRESAMPLED = 1309
   dtwain_constants.DTWAIN_PDFOCR_CLEANTEXT1 = 1
   dtwain_constants.DTWAIN_PDFOCR_CLEANTEXT2 = 2
   dtwain_constants.DTWAIN_MODAL = 0
   dtwain_constants.DTWAIN_MODELESS = 1
   dtwain_constants.DTWAIN_UIModeCLOSE = 0
   dtwain_constants.DTWAIN_UIModeOPEN = 1
   dtwain_constants.DTWAIN_REOPEN_SOURCE = 2
   dtwain_constants.DTWAIN_ROUNDNEAREST = 0
   dtwain_constants.DTWAIN_ROUNDUP = 1
   dtwain_constants.DTWAIN_ROUNDDOWN = 2
   dtwain_constants.DTWAIN_OR_ROT0 = 0
   dtwain_constants.DTWAIN_OR_ROT90 = 1
   dtwain_constants.DTWAIN_OR_ROT180 = 2
   dtwain_constants.DTWAIN_OR_ROT270 = 3
   dtwain_constants.DTWAIN_OR_PORTRAIT = DTWAIN_OR_ROT0
   dtwain_constants.DTWAIN_OR_LANDSCAPE = DTWAIN_OR_ROT270
   dtwain_constants.DTWAIN_OR_ANYROTATION = (-1)
   dtwain_constants.DTWAIN_CO_GET = 0x0001
   dtwain_constants.DTWAIN_CO_SET = 0x0002
   dtwain_constants.DTWAIN_CO_GETDEFAULT = 0x0004
   dtwain_constants.DTWAIN_CO_GETCURRENT = 0x0008
   dtwain_constants.DTWAIN_CO_RESET = 0x0010
   dtwain_constants.DTWAIN_CO_SETCONSTRAINT = 0x0020
   dtwain_constants.DTWAIN_CO_CONSTRAINABLE = 0x0040
   dtwain_constants.DTWAIN_CO_GETHELP = 0x0100
   dtwain_constants.DTWAIN_CO_GETLABEL = 0x0200
   dtwain_constants.DTWAIN_CO_GETLABELENUM = 0x0400
   dtwain_constants.DTWAIN_CNTYAFGHANISTAN = 1001
   dtwain_constants.DTWAIN_CNTYALGERIA = 213
   dtwain_constants.DTWAIN_CNTYAMERICANSAMOA = 684
   dtwain_constants.DTWAIN_CNTYANDORRA = 33
   dtwain_constants.DTWAIN_CNTYANGOLA = 1002
   dtwain_constants.DTWAIN_CNTYANGUILLA = 8090
   dtwain_constants.DTWAIN_CNTYANTIGUA = 8091
   dtwain_constants.DTWAIN_CNTYARGENTINA = 54
   dtwain_constants.DTWAIN_CNTYARUBA = 297
   dtwain_constants.DTWAIN_CNTYASCENSIONI = 247
   dtwain_constants.DTWAIN_CNTYAUSTRALIA = 61
   dtwain_constants.DTWAIN_CNTYAUSTRIA = 43
   dtwain_constants.DTWAIN_CNTYBAHAMAS = 8092
   dtwain_constants.DTWAIN_CNTYBAHRAIN = 973
   dtwain_constants.DTWAIN_CNTYBANGLADESH = 880
   dtwain_constants.DTWAIN_CNTYBARBADOS = 8093
   dtwain_constants.DTWAIN_CNTYBELGIUM = 32
   dtwain_constants.DTWAIN_CNTYBELIZE = 501
   dtwain_constants.DTWAIN_CNTYBENIN = 229
   dtwain_constants.DTWAIN_CNTYBERMUDA = 8094
   dtwain_constants.DTWAIN_CNTYBHUTAN = 1003
   dtwain_constants.DTWAIN_CNTYBOLIVIA = 591
   dtwain_constants.DTWAIN_CNTYBOTSWANA = 267
   dtwain_constants.DTWAIN_CNTYBRITAIN = 6
   dtwain_constants.DTWAIN_CNTYBRITVIRGINIS = 8095
   dtwain_constants.DTWAIN_CNTYBRAZIL = 55
   dtwain_constants.DTWAIN_CNTYBRUNEI = 673
   dtwain_constants.DTWAIN_CNTYBULGARIA = 359
   dtwain_constants.DTWAIN_CNTYBURKINAFASO = 1004
   dtwain_constants.DTWAIN_CNTYBURMA = 1005
   dtwain_constants.DTWAIN_CNTYBURUNDI = 1006
   dtwain_constants.DTWAIN_CNTYCAMAROON = 237
   dtwain_constants.DTWAIN_CNTYCANADA = 2
   dtwain_constants.DTWAIN_CNTYCAPEVERDEIS = 238
   dtwain_constants.DTWAIN_CNTYCAYMANIS = 8096
   dtwain_constants.DTWAIN_CNTYCENTRALAFREP = 1007
   dtwain_constants.DTWAIN_CNTYCHAD = 1008
   dtwain_constants.DTWAIN_CNTYCHILE = 56
   dtwain_constants.DTWAIN_CNTYCHINA = 86
   dtwain_constants.DTWAIN_CNTYCHRISTMASIS = 1009
   dtwain_constants.DTWAIN_CNTYCOCOSIS = 1009
   dtwain_constants.DTWAIN_CNTYCOLOMBIA = 57
   dtwain_constants.DTWAIN_CNTYCOMOROS = 1010
   dtwain_constants.DTWAIN_CNTYCONGO = 1011
   dtwain_constants.DTWAIN_CNTYCOOKIS = 1012
   dtwain_constants.DTWAIN_CNTYCOSTARICA = 506
   dtwain_constants.DTWAIN_CNTYCUBA = 5
   dtwain_constants.DTWAIN_CNTYCYPRUS = 357
   dtwain_constants.DTWAIN_CNTYCZECHOSLOVAKIA = 42
   dtwain_constants.DTWAIN_CNTYDENMARK = 45
   dtwain_constants.DTWAIN_CNTYDJIBOUTI = 1013
   dtwain_constants.DTWAIN_CNTYDOMINICA = 8097
   dtwain_constants.DTWAIN_CNTYDOMINCANREP = 8098
   dtwain_constants.DTWAIN_CNTYEASTERIS = 1014
   dtwain_constants.DTWAIN_CNTYECUADOR = 593
   dtwain_constants.DTWAIN_CNTYEGYPT = 20
   dtwain_constants.DTWAIN_CNTYELSALVADOR = 503
   dtwain_constants.DTWAIN_CNTYEQGUINEA = 1015
   dtwain_constants.DTWAIN_CNTYETHIOPIA = 251
   dtwain_constants.DTWAIN_CNTYFALKLANDIS = 1016
   dtwain_constants.DTWAIN_CNTYFAEROEIS = 298
   dtwain_constants.DTWAIN_CNTYFIJIISLANDS = 679
   dtwain_constants.DTWAIN_CNTYFINLAND = 358
   dtwain_constants.DTWAIN_CNTYFRANCE = 33
   dtwain_constants.DTWAIN_CNTYFRANTILLES = 596
   dtwain_constants.DTWAIN_CNTYFRGUIANA = 594
   dtwain_constants.DTWAIN_CNTYFRPOLYNEISA = 689
   dtwain_constants.DTWAIN_CNTYFUTANAIS = 1043
   dtwain_constants.DTWAIN_CNTYGABON = 241
   dtwain_constants.DTWAIN_CNTYGAMBIA = 220
   dtwain_constants.DTWAIN_CNTYGERMANY = 49
   dtwain_constants.DTWAIN_CNTYGHANA = 233
   dtwain_constants.DTWAIN_CNTYGIBRALTER = 350
   dtwain_constants.DTWAIN_CNTYGREECE = 30
   dtwain_constants.DTWAIN_CNTYGREENLAND = 299
   dtwain_constants.DTWAIN_CNTYGRENADA = 8099
   dtwain_constants.DTWAIN_CNTYGRENEDINES = 8015
   dtwain_constants.DTWAIN_CNTYGUADELOUPE = 590
   dtwain_constants.DTWAIN_CNTYGUAM = 671
   dtwain_constants.DTWAIN_CNTYGUANTANAMOBAY = 5399
   dtwain_constants.DTWAIN_CNTYGUATEMALA = 502
   dtwain_constants.DTWAIN_CNTYGUINEA = 224
   dtwain_constants.DTWAIN_CNTYGUINEABISSAU = 1017
   dtwain_constants.DTWAIN_CNTYGUYANA = 592
   dtwain_constants.DTWAIN_CNTYHAITI = 509
   dtwain_constants.DTWAIN_CNTYHONDURAS = 504
   dtwain_constants.DTWAIN_CNTYHONGKONG = 852
   dtwain_constants.DTWAIN_CNTYHUNGARY = 36
   dtwain_constants.DTWAIN_CNTYICELAND = 354
   dtwain_constants.DTWAIN_CNTYINDIA = 91
   dtwain_constants.DTWAIN_CNTYINDONESIA = 62
   dtwain_constants.DTWAIN_CNTYIRAN = 98
   dtwain_constants.DTWAIN_CNTYIRAQ = 964
   dtwain_constants.DTWAIN_CNTYIRELAND = 353
   dtwain_constants.DTWAIN_CNTYISRAEL = 972
   dtwain_constants.DTWAIN_CNTYITALY = 39
   dtwain_constants.DTWAIN_CNTYIVORYCOAST = 225
   dtwain_constants.DTWAIN_CNTYJAMAICA = 8010
   dtwain_constants.DTWAIN_CNTYJAPAN = 81
   dtwain_constants.DTWAIN_CNTYJORDAN = 962
   dtwain_constants.DTWAIN_CNTYKENYA = 254
   dtwain_constants.DTWAIN_CNTYKIRIBATI = 1018
   dtwain_constants.DTWAIN_CNTYKOREA = 82
   dtwain_constants.DTWAIN_CNTYKUWAIT = 965
   dtwain_constants.DTWAIN_CNTYLAOS = 1019
   dtwain_constants.DTWAIN_CNTYLEBANON = 1020
   dtwain_constants.DTWAIN_CNTYLIBERIA = 231
   dtwain_constants.DTWAIN_CNTYLIBYA = 218
   dtwain_constants.DTWAIN_CNTYLIECHTENSTEIN = 41
   dtwain_constants.DTWAIN_CNTYLUXENBOURG = 352
   dtwain_constants.DTWAIN_CNTYMACAO = 853
   dtwain_constants.DTWAIN_CNTYMADAGASCAR = 1021
   dtwain_constants.DTWAIN_CNTYMALAWI = 265
   dtwain_constants.DTWAIN_CNTYMALAYSIA = 60
   dtwain_constants.DTWAIN_CNTYMALDIVES = 960
   dtwain_constants.DTWAIN_CNTYMALI = 1022
   dtwain_constants.DTWAIN_CNTYMALTA = 356
   dtwain_constants.DTWAIN_CNTYMARSHALLIS = 692
   dtwain_constants.DTWAIN_CNTYMAURITANIA = 1023
   dtwain_constants.DTWAIN_CNTYMAURITIUS = 230
   dtwain_constants.DTWAIN_CNTYMEXICO = 3
   dtwain_constants.DTWAIN_CNTYMICRONESIA = 691
   dtwain_constants.DTWAIN_CNTYMIQUELON = 508
   dtwain_constants.DTWAIN_CNTYMONACO = 33
   dtwain_constants.DTWAIN_CNTYMONGOLIA = 1024
   dtwain_constants.DTWAIN_CNTYMONTSERRAT = 8011
   dtwain_constants.DTWAIN_CNTYMOROCCO = 212
   dtwain_constants.DTWAIN_CNTYMOZAMBIQUE = 1025
   dtwain_constants.DTWAIN_CNTYNAMIBIA = 264
   dtwain_constants.DTWAIN_CNTYNAURU = 1026
   dtwain_constants.DTWAIN_CNTYNEPAL = 977
   dtwain_constants.DTWAIN_CNTYNETHERLANDS = 31
   dtwain_constants.DTWAIN_CNTYNETHANTILLES = 599
   dtwain_constants.DTWAIN_CNTYNEVIS = 8012
   dtwain_constants.DTWAIN_CNTYNEWCALEDONIA = 687
   dtwain_constants.DTWAIN_CNTYNEWZEALAND = 64
   dtwain_constants.DTWAIN_CNTYNICARAGUA = 505
   dtwain_constants.DTWAIN_CNTYNIGER = 227
   dtwain_constants.DTWAIN_CNTYNIGERIA = 234
   dtwain_constants.DTWAIN_CNTYNIUE = 1027
   dtwain_constants.DTWAIN_CNTYNORFOLKI = 1028
   dtwain_constants.DTWAIN_CNTYNORWAY = 47
   dtwain_constants.DTWAIN_CNTYOMAN = 968
   dtwain_constants.DTWAIN_CNTYPAKISTAN = 92
   dtwain_constants.DTWAIN_CNTYPALAU = 1029
   dtwain_constants.DTWAIN_CNTYPANAMA = 507
   dtwain_constants.DTWAIN_CNTYPARAGUAY = 595
   dtwain_constants.DTWAIN_CNTYPERU = 51
   dtwain_constants.DTWAIN_CNTYPHILLIPPINES = 63
   dtwain_constants.DTWAIN_CNTYPITCAIRNIS = 1030
   dtwain_constants.DTWAIN_CNTYPNEWGUINEA = 675
   dtwain_constants.DTWAIN_CNTYPOLAND = 48
   dtwain_constants.DTWAIN_CNTYPORTUGAL = 351
   dtwain_constants.DTWAIN_CNTYQATAR = 974
   dtwain_constants.DTWAIN_CNTYREUNIONI = 1031
   dtwain_constants.DTWAIN_CNTYROMANIA = 40
   dtwain_constants.DTWAIN_CNTYRWANDA = 250
   dtwain_constants.DTWAIN_CNTYSAIPAN = 670
   dtwain_constants.DTWAIN_CNTYSANMARINO = 39
   dtwain_constants.DTWAIN_CNTYSAOTOME = 1033
   dtwain_constants.DTWAIN_CNTYSAUDIARABIA = 966
   dtwain_constants.DTWAIN_CNTYSENEGAL = 221
   dtwain_constants.DTWAIN_CNTYSEYCHELLESIS = 1034
   dtwain_constants.DTWAIN_CNTYSIERRALEONE = 1035
   dtwain_constants.DTWAIN_CNTYSINGAPORE = 65
   dtwain_constants.DTWAIN_CNTYSOLOMONIS = 1036
   dtwain_constants.DTWAIN_CNTYSOMALI = 1037
   dtwain_constants.DTWAIN_CNTYSOUTHAFRICA = 27
   dtwain_constants.DTWAIN_CNTYSPAIN = 34
   dtwain_constants.DTWAIN_CNTYSRILANKA = 94
   dtwain_constants.DTWAIN_CNTYSTHELENA = 1032
   dtwain_constants.DTWAIN_CNTYSTKITTS = 8013
   dtwain_constants.DTWAIN_CNTYSTLUCIA = 8014
   dtwain_constants.DTWAIN_CNTYSTPIERRE = 508
   dtwain_constants.DTWAIN_CNTYSTVINCENT = 8015
   dtwain_constants.DTWAIN_CNTYSUDAN = 1038
   dtwain_constants.DTWAIN_CNTYSURINAME = 597
   dtwain_constants.DTWAIN_CNTYSWAZILAND = 268
   dtwain_constants.DTWAIN_CNTYSWEDEN = 46
   dtwain_constants.DTWAIN_CNTYSWITZERLAND = 41
   dtwain_constants.DTWAIN_CNTYSYRIA = 1039
   dtwain_constants.DTWAIN_CNTYTAIWAN = 886
   dtwain_constants.DTWAIN_CNTYTANZANIA = 255
   dtwain_constants.DTWAIN_CNTYTHAILAND = 66
   dtwain_constants.DTWAIN_CNTYTOBAGO = 8016
   dtwain_constants.DTWAIN_CNTYTOGO = 228
   dtwain_constants.DTWAIN_CNTYTONGAIS = 676
   dtwain_constants.DTWAIN_CNTYTRINIDAD = 8016
   dtwain_constants.DTWAIN_CNTYTUNISIA = 216
   dtwain_constants.DTWAIN_CNTYTURKEY = 90
   dtwain_constants.DTWAIN_CNTYTURKSCAICOS = 8017
   dtwain_constants.DTWAIN_CNTYTUVALU = 1040
   dtwain_constants.DTWAIN_CNTYUGANDA = 256
   dtwain_constants.DTWAIN_CNTYUSSR = 7
   dtwain_constants.DTWAIN_CNTYUAEMIRATES = 971
   dtwain_constants.DTWAIN_CNTYUNITEDKINGDOM = 44
   dtwain_constants.DTWAIN_CNTYUSA = 1
   dtwain_constants.DTWAIN_CNTYURUGUAY = 598
   dtwain_constants.DTWAIN_CNTYVANUATU = 1041
   dtwain_constants.DTWAIN_CNTYVATICANCITY = 39
   dtwain_constants.DTWAIN_CNTYVENEZUELA = 58
   dtwain_constants.DTWAIN_CNTYWAKE = 1042
   dtwain_constants.DTWAIN_CNTYWALLISIS = 1043
   dtwain_constants.DTWAIN_CNTYWESTERNSAHARA = 1044
   dtwain_constants.DTWAIN_CNTYWESTERNSAMOA = 1045
   dtwain_constants.DTWAIN_CNTYYEMEN = 1046
   dtwain_constants.DTWAIN_CNTYYUGOSLAVIA = 38
   dtwain_constants.DTWAIN_CNTYZAIRE = 243
   dtwain_constants.DTWAIN_CNTYZAMBIA = 260
   dtwain_constants.DTWAIN_CNTYZIMBABWE = 263
   dtwain_constants.DTWAIN_LANGDANISH = 0
   dtwain_constants.DTWAIN_LANGDUTCH = 1
   dtwain_constants.DTWAIN_LANGINTERNATIONALENGLISH = 2
   dtwain_constants.DTWAIN_LANGFRENCHCANADIAN = 3
   dtwain_constants.DTWAIN_LANGFINNISH = 4
   dtwain_constants.DTWAIN_LANGFRENCH = 5
   dtwain_constants.DTWAIN_LANGGERMAN = 6
   dtwain_constants.DTWAIN_LANGICELANDIC = 7
   dtwain_constants.DTWAIN_LANGITALIAN = 8
   dtwain_constants.DTWAIN_LANGNORWEGIAN = 9
   dtwain_constants.DTWAIN_LANGPORTUGUESE = 10
   dtwain_constants.DTWAIN_LANGSPANISH = 11
   dtwain_constants.DTWAIN_LANGSWEDISH = 12
   dtwain_constants.DTWAIN_LANGUSAENGLISH = 13
   dtwain_constants.DTWAIN_NO_ERROR = (0)
   dtwain_constants.DTWAIN_ERR_FIRST = (-1000)
   dtwain_constants.DTWAIN_ERR_BAD_HANDLE = (-1001)
   dtwain_constants.DTWAIN_ERR_BAD_SOURCE = (-1002)
   dtwain_constants.DTWAIN_ERR_BAD_ARRAY = (-1003)
   dtwain_constants.DTWAIN_ERR_WRONG_ARRAY_TYPE = (-1004)
   dtwain_constants.DTWAIN_ERR_INDEX_BOUNDS = (-1005)
   dtwain_constants.DTWAIN_ERR_OUT_OF_MEMORY = (-1006)
   dtwain_constants.DTWAIN_ERR_NULL_WINDOW = (-1007)
   dtwain_constants.DTWAIN_ERR_BAD_PIXTYPE = (-1008)
   dtwain_constants.DTWAIN_ERR_BAD_CONTAINER = (-1009)
   dtwain_constants.DTWAIN_ERR_NO_SESSION = (-1010)
   dtwain_constants.DTWAIN_ERR_BAD_ACQUIRE_NUM = (-1011)
   dtwain_constants.DTWAIN_ERR_BAD_CAP = (-1012)
   dtwain_constants.DTWAIN_ERR_CAP_NO_SUPPORT = (-1013)
   dtwain_constants.DTWAIN_ERR_TWAIN = (-1014)
   dtwain_constants.DTWAIN_ERR_HOOK_FAILED = (-1015)
   dtwain_constants.DTWAIN_ERR_BAD_FILENAME = (-1016)
   dtwain_constants.DTWAIN_ERR_EMPTY_ARRAY = (-1017)
   dtwain_constants.DTWAIN_ERR_FILE_FORMAT = (-1018)
   dtwain_constants.DTWAIN_ERR_BAD_DIB_PAGE = (-1019)
   dtwain_constants.DTWAIN_ERR_SOURCE_ACQUIRING = (-1020)
   dtwain_constants.DTWAIN_ERR_INVALID_PARAM = (-1021)
   dtwain_constants.DTWAIN_ERR_INVALID_RANGE = (-1022)
   dtwain_constants.DTWAIN_ERR_UI_ERROR = (-1023)
   dtwain_constants.DTWAIN_ERR_BAD_UNIT = (-1024)
   dtwain_constants.DTWAIN_ERR_LANGDLL_NOT_FOUND = (-1025)
   dtwain_constants.DTWAIN_ERR_SOURCE_NOT_OPEN = (-1026)
   dtwain_constants.DTWAIN_ERR_DEVICEEVENT_NOT_SUPPORTED = (-1027)
   dtwain_constants.DTWAIN_ERR_UIONLY_NOT_SUPPORTED = (-1028)
   dtwain_constants.DTWAIN_ERR_UI_ALREADY_OPENED = (-1029)
   dtwain_constants.DTWAIN_ERR_CAPSET_NOSUPPORT = (-1030)
   dtwain_constants.DTWAIN_ERR_NO_FILE_XFER = (-1031)
   dtwain_constants.DTWAIN_ERR_INVALID_BITDEPTH = (-1032)
   dtwain_constants.DTWAIN_ERR_NO_CAPS_DEFINED = (-1033)
   dtwain_constants.DTWAIN_ERR_TILES_NOT_SUPPORTED = (-1034)
   dtwain_constants.DTWAIN_ERR_INVALID_DTWAIN_FRAME = (-1035)
   dtwain_constants.DTWAIN_ERR_LIMITED_VERSION = (-1036)
   dtwain_constants.DTWAIN_ERR_NO_FEEDER = (-1037)
   dtwain_constants.DTWAIN_ERR_NO_FEEDER_QUERY = (-1038)
   dtwain_constants.DTWAIN_ERR_EXCEPTION_ERROR = (-1039)
   dtwain_constants.DTWAIN_ERR_INVALID_STATE = (-1040)
   dtwain_constants.DTWAIN_ERR_UNSUPPORTED_EXTINFO = (-1041)
   dtwain_constants.DTWAIN_ERR_DLLRESOURCE_NOTFOUND = (-1042)
   dtwain_constants.DTWAIN_ERR_NOT_INITIALIZED = (-1043)
   dtwain_constants.DTWAIN_ERR_NO_SOURCES = (-1044)
   dtwain_constants.DTWAIN_ERR_TWAIN_NOT_INSTALLED = (-1045)
   dtwain_constants.DTWAIN_ERR_WRONG_THREAD = (-1046)
   dtwain_constants.DTWAIN_ERR_BAD_CAPTYPE = (-1047)
   dtwain_constants.DTWAIN_ERR_UNKNOWN_CAPDATATYPE = (-1048)
   dtwain_constants.DTWAIN_ERR_DEMO_NOFILETYPE = (-1049)
   dtwain_constants.DTWAIN_ERR_SOURCESELECTION_CANCELED = (-1050)
   dtwain_constants.DTWAIN_ERR_RESOURCES_NOT_FOUND = (-1051)
   dtwain_constants.DTWAIN_ERR_STRINGTYPE_MISMATCH = (-1052)
   dtwain_constants.DTWAIN_ERR_ARRAYTYPE_MISMATCH = (-1053)
   dtwain_constants.DTWAIN_ERR_SOURCENAME_NOTINSTALLED = (-1054)
   dtwain_constants.DTWAIN_ERR_NO_MEMFILE_XFER = (-1055)
   dtwain_constants.DTWAIN_ERR_AREA_ARRAY_TOO_SMALL = (-1056)
   dtwain_constants.DTWAIN_ERR_LOG_CREATE_ERROR = (-1057)
   dtwain_constants.DTWAIN_ERR_FILESYSTEM_NOT_SUPPORTED = (-1058)
   dtwain_constants.DTWAIN_ERR_TILEMODE_NOTSET = (-1059)
   dtwain_constants.DTWAIN_ERR_INI32_NOT_FOUND = (-1060)
   dtwain_constants.DTWAIN_ERR_INI64_NOT_FOUND = (-1061)
   dtwain_constants.DTWAIN_ERR_CRC_CHECK = (-1062)
   dtwain_constants.DTWAIN_ERR_RESOURCES_BAD_VERSION = (-1063)
   dtwain_constants.DTWAIN_ERR_WIN32_ERROR = (-1064)
   dtwain_constants.DTWAIN_ERR_STRINGID_NOTFOUND = (-1065)
   dtwain_constants.DTWAIN_ERR_RESOURCES_DUPLICATEID_FOUND = (-1066)
   dtwain_constants.DTWAIN_ERR_UNAVAILABLE_EXTINFO = (-1067)
   dtwain_constants.DTWAIN_ERR_TWAINDSM2_BADBITMAP = (-1068)
   dtwain_constants.DTWAIN_ERR_ACQUISITION_CANCELED = (-1069)
   dtwain_constants.DTWAIN_ERR_IMAGE_RESAMPLED = (-1070)
   dtwain_constants.DTWAIN_ERR_UNKNOWN_TWAIN_RC = (-1071)
   dtwain_constants.DTWAIN_ERR_UNKNOWN_TWAIN_CC = (-1072)
   dtwain_constants.DTWAIN_ERR_RESOURCES_DATA_EXCEPTION = (-1073)
   dtwain_constants.DTWAIN_ERR_AUDIO_TRANSFER_NOTSUPPORTED = (-1074)
   dtwain_constants.DTWAIN_ERR_FEEDER_COMPLIANCY = (-1075)
   dtwain_constants.DTWAIN_ERR_SUPPORTEDCAPS_COMPLIANCY1 = (-1076)
   dtwain_constants.DTWAIN_ERR_SUPPORTEDCAPS_COMPLIANCY2 = (-1077)
   dtwain_constants.DTWAIN_ERR_ICAPPIXELTYPE_COMPLIANCY1 = (-1078)
   dtwain_constants.DTWAIN_ERR_ICAPPIXELTYPE_COMPLIANCY2 = (-1079)
   dtwain_constants.DTWAIN_ERR_ICAPBITDEPTH_COMPLIANCY1 = (-1080)
   dtwain_constants.DTWAIN_ERR_XFERMECH_COMPLIANCY = (-1081)
   dtwain_constants.DTWAIN_ERR_STANDARDCAPS_COMPLIANCY = (-1082)
   dtwain_constants.DTWAIN_ERR_EXTIMAGEINFO_DATATYPE_MISMATCH = (-1083)
   dtwain_constants.DTWAIN_ERR_EXTIMAGEINFO_RETRIEVAL = (-1084)
   dtwain_constants.DTWAIN_ERR_RANGE_OUTOFBOUNDS = (-1085)
   dtwain_constants.DTWAIN_ERR_RANGE_STEPISZERO = (-1086)
   dtwain_constants.DTWAIN_ERR_BLANKNAMEDETECTED = (-1087)
   dtwain_constants.DTWAIN_ERR_FEEDER_NOPAPERSENSOR = (-1088)
   dtwain_constants.TWAIN_ERR_LOW_MEMORY = (-1100)
   dtwain_constants.TWAIN_ERR_FALSE_ALARM = (-1101)
   dtwain_constants.TWAIN_ERR_BUMMER = (-1102)
   dtwain_constants.TWAIN_ERR_NODATASOURCE = (-1103)
   dtwain_constants.TWAIN_ERR_MAXCONNECTIONS = (-1104)
   dtwain_constants.TWAIN_ERR_OPERATIONERROR = (-1105)
   dtwain_constants.TWAIN_ERR_BADCAPABILITY = (-1106)
   dtwain_constants.TWAIN_ERR_BADVALUE = (-1107)
   dtwain_constants.TWAIN_ERR_BADPROTOCOL = (-1108)
   dtwain_constants.TWAIN_ERR_SEQUENCEERROR = (-1109)
   dtwain_constants.TWAIN_ERR_BADDESTINATION = (-1110)
   dtwain_constants.TWAIN_ERR_CAPNOTSUPPORTED = (-1111)
   dtwain_constants.TWAIN_ERR_CAPBADOPERATION = (-1112)
   dtwain_constants.TWAIN_ERR_CAPSEQUENCEERROR = (-1113)
   dtwain_constants.TWAIN_ERR_FILEPROTECTEDERROR = (-1114)
   dtwain_constants.TWAIN_ERR_FILEEXISTERROR = (-1115)
   dtwain_constants.TWAIN_ERR_FILENOTFOUND = (-1116)
   dtwain_constants.TWAIN_ERR_DIRNOTEMPTY = (-1117)
   dtwain_constants.TWAIN_ERR_FEEDERJAMMED = (-1118)
   dtwain_constants.TWAIN_ERR_FEEDERMULTPAGES = (-1119)
   dtwain_constants.TWAIN_ERR_FEEDERWRITEERROR = (-1120)
   dtwain_constants.TWAIN_ERR_DEVICEOFFLINE = (-1121)
   dtwain_constants.TWAIN_ERR_NULL_CONTAINER = (-1122)
   dtwain_constants.TWAIN_ERR_INTERLOCK = (-1123)
   dtwain_constants.TWAIN_ERR_DAMAGEDCORNER = (-1124)
   dtwain_constants.TWAIN_ERR_FOCUSERROR = (-1125)
   dtwain_constants.TWAIN_ERR_DOCTOOLIGHT = (-1126)
   dtwain_constants.TWAIN_ERR_DOCTOODARK = (-1127)
   dtwain_constants.TWAIN_ERR_NOMEDIA = (-1128)
   dtwain_constants.DTWAIN_ERR_FILEXFERSTART = (-2000)
   dtwain_constants.DTWAIN_ERR_MEM = (-2001)
   dtwain_constants.DTWAIN_ERR_FILEOPEN = (-2002)
   dtwain_constants.DTWAIN_ERR_FILEREAD = (-2003)
   dtwain_constants.DTWAIN_ERR_FILEWRITE = (-2004)
   dtwain_constants.DTWAIN_ERR_BADPARAM = (-2005)
   dtwain_constants.DTWAIN_ERR_INVALIDBMP = (-2006)
   dtwain_constants.DTWAIN_ERR_BMPRLE = (-2007)
   dtwain_constants.DTWAIN_ERR_RESERVED1 = (-2008)
   dtwain_constants.DTWAIN_ERR_INVALIDJPG = (-2009)
   dtwain_constants.DTWAIN_ERR_DC = (-2010)
   dtwain_constants.DTWAIN_ERR_DIB = (-2011)
   dtwain_constants.DTWAIN_ERR_RESERVED2 = (-2012)
   dtwain_constants.DTWAIN_ERR_NORESOURCE = (-2013)
   dtwain_constants.DTWAIN_ERR_CALLBACKCANCEL = (-2014)
   dtwain_constants.DTWAIN_ERR_INVALIDPNG = (-2015)
   dtwain_constants.DTWAIN_ERR_PNGCREATE = (-2016)
   dtwain_constants.DTWAIN_ERR_INTERNAL = (-2017)
   dtwain_constants.DTWAIN_ERR_FONT = (-2018)
   dtwain_constants.DTWAIN_ERR_INTTIFF = (-2019)
   dtwain_constants.DTWAIN_ERR_INVALIDTIFF = (-2020)
   dtwain_constants.DTWAIN_ERR_NOTIFFLZW = (-2021)
   dtwain_constants.DTWAIN_ERR_INVALIDPCX = (-2022)
   dtwain_constants.DTWAIN_ERR_CREATEBMP = (-2023)
   dtwain_constants.DTWAIN_ERR_NOLINES = (-2024)
   dtwain_constants.DTWAIN_ERR_GETDIB = (-2025)
   dtwain_constants.DTWAIN_ERR_NODEVOP = (-2026)
   dtwain_constants.DTWAIN_ERR_INVALIDWMF = (-2027)
   dtwain_constants.DTWAIN_ERR_DEPTHMISMATCH = (-2028)
   dtwain_constants.DTWAIN_ERR_BITBLT = (-2029)
   dtwain_constants.DTWAIN_ERR_BUFTOOSMALL = (-2030)
   dtwain_constants.DTWAIN_ERR_TOOMANYCOLORS = (-2031)
   dtwain_constants.DTWAIN_ERR_INVALIDTGA = (-2032)
   dtwain_constants.DTWAIN_ERR_NOTGATHUMBNAIL = (-2033)
   dtwain_constants.DTWAIN_ERR_RESERVED3 = (-2034)
   dtwain_constants.DTWAIN_ERR_CREATEDIB = (-2035)
   dtwain_constants.DTWAIN_ERR_NOLZW = (-2036)
   dtwain_constants.DTWAIN_ERR_SELECTOBJ = (-2037)
   dtwain_constants.DTWAIN_ERR_BADMANAGER = (-2038)
   dtwain_constants.DTWAIN_ERR_OBSOLETE = (-2039)
   dtwain_constants.DTWAIN_ERR_CREATEDIBSECTION = (-2040)
   dtwain_constants.DTWAIN_ERR_SETWINMETAFILEBITS = (-2041)
   dtwain_constants.DTWAIN_ERR_GETWINMETAFILEBITS = (-2042)
   dtwain_constants.DTWAIN_ERR_PAXPWD = (-2043)
   dtwain_constants.DTWAIN_ERR_INVALIDPAX = (-2044)
   dtwain_constants.DTWAIN_ERR_NOSUPPORT = (-2045)
   dtwain_constants.DTWAIN_ERR_INVALIDPSD = (-2046)
   dtwain_constants.DTWAIN_ERR_PSDNOTSUPPORTED = (-2047)
   dtwain_constants.DTWAIN_ERR_DECRYPT = (-2048)
   dtwain_constants.DTWAIN_ERR_ENCRYPT = (-2049)
   dtwain_constants.DTWAIN_ERR_COMPRESSION = (-2050)
   dtwain_constants.DTWAIN_ERR_DECOMPRESSION = (-2051)
   dtwain_constants.DTWAIN_ERR_INVALIDTLA = (-2052)
   dtwain_constants.DTWAIN_ERR_INVALIDWBMP = (-2053)
   dtwain_constants.DTWAIN_ERR_NOTIFFTAG = (-2054)
   dtwain_constants.DTWAIN_ERR_NOLOCALSTORAGE = (-2055)
   dtwain_constants.DTWAIN_ERR_INVALIDEXIF = (-2056)
   dtwain_constants.DTWAIN_ERR_NOEXIFSTRING = (-2057)
   dtwain_constants.DTWAIN_ERR_TIFFDLL32NOTFOUND = (-2058)
   dtwain_constants.DTWAIN_ERR_TIFFDLL16NOTFOUND = (-2059)
   dtwain_constants.DTWAIN_ERR_PNGDLL16NOTFOUND = (-2060)
   dtwain_constants.DTWAIN_ERR_JPEGDLL16NOTFOUND = (-2061)
   dtwain_constants.DTWAIN_ERR_BADBITSPERPIXEL = (-2062)
   dtwain_constants.DTWAIN_ERR_TIFFDLL32INVALIDVER = (-2063)
   dtwain_constants.DTWAIN_ERR_PDFDLL32NOTFOUND = (-2064)
   dtwain_constants.DTWAIN_ERR_PDFDLL32INVALIDVER = (-2065)
   dtwain_constants.DTWAIN_ERR_JPEGDLL32NOTFOUND = (-2066)
   dtwain_constants.DTWAIN_ERR_JPEGDLL32INVALIDVER = (-2067)
   dtwain_constants.DTWAIN_ERR_PNGDLL32NOTFOUND = (-2068)
   dtwain_constants.DTWAIN_ERR_PNGDLL32INVALIDVER = (-2069)
   dtwain_constants.DTWAIN_ERR_J2KDLL32NOTFOUND = (-2070)
   dtwain_constants.DTWAIN_ERR_J2KDLL32INVALIDVER = (-2071)
   dtwain_constants.DTWAIN_ERR_MANDUPLEX_UNAVAILABLE = (-2072)
   dtwain_constants.DTWAIN_ERR_TIMEOUT = (-2073)
   dtwain_constants.DTWAIN_ERR_INVALIDICONFORMAT = (-2074)
   dtwain_constants.DTWAIN_ERR_TWAIN32DSMNOTFOUND = (-2075)
   dtwain_constants.DTWAIN_ERR_TWAINOPENSOURCEDSMNOTFOUND = (-2076)
   dtwain_constants.DTWAIN_ERR_INVALID_DIRECTORY = (-2077)
   dtwain_constants.DTWAIN_ERR_CREATE_DIRECTORY = (-2078)
   dtwain_constants.DTWAIN_ERR_OCRLIBRARY_NOTFOUND = (-2079)
   dtwain_constants.DTWAIN_TWAINSAVE_OK = (0)
   dtwain_constants.DTWAIN_ERR_TS_FIRST = (-2080)
   dtwain_constants.DTWAIN_ERR_TS_NOFILENAME = (-2081)
   dtwain_constants.DTWAIN_ERR_TS_NOTWAINSYS = (-2082)
   dtwain_constants.DTWAIN_ERR_TS_DEVICEFAILURE = (-2083)
   dtwain_constants.DTWAIN_ERR_TS_FILESAVEERROR = (-2084)
   dtwain_constants.DTWAIN_ERR_TS_COMMANDILLEGAL = (-2085)
   dtwain_constants.DTWAIN_ERR_TS_CANCELLED = (-2086)
   dtwain_constants.DTWAIN_ERR_TS_ACQUISITIONERROR = (-2087)
   dtwain_constants.DTWAIN_ERR_TS_INVALIDCOLORSPACE = (-2088)
   dtwain_constants.DTWAIN_ERR_TS_PDFNOTSUPPORTED = (-2089)
   dtwain_constants.DTWAIN_ERR_TS_NOTAVAILABLE = (-2090)
   dtwain_constants.DTWAIN_ERR_OCR_FIRST = (-2100)
   dtwain_constants.DTWAIN_ERR_OCR_INVALIDPAGENUM = (-2101)
   dtwain_constants.DTWAIN_ERR_OCR_INVALIDENGINE = (-2102)
   dtwain_constants.DTWAIN_ERR_OCR_NOTACTIVE = (-2103)
   dtwain_constants.DTWAIN_ERR_OCR_INVALIDFILETYPE = (-2104)
   dtwain_constants.DTWAIN_ERR_OCR_INVALIDPIXELTYPE = (-2105)
   dtwain_constants.DTWAIN_ERR_OCR_INVALIDBITDEPTH = (-2106)
   dtwain_constants.DTWAIN_ERR_OCR_RECOGNITIONERROR = (-2107)
   dtwain_constants.DTWAIN_ERR_OCR_LAST = (-2108)
   dtwain_constants.DTWAIN_ERR_LAST = DTWAIN_ERR_OCR_LAST
   dtwain_constants.DTWAIN_ERR_SOURCE_COULD_NOT_OPEN = (-2500)
   dtwain_constants.DTWAIN_ERR_SOURCE_COULD_NOT_CLOSE = (-2501)
   dtwain_constants.DTWAIN_ERR_IMAGEINFO_INVALID = (-2502)
   dtwain_constants.DTWAIN_ERR_WRITEDATA_TOFILE = (-2503)
   dtwain_constants.DTWAIN_ERR_OPERATION_NOTSUPPORTED = (-2504)
   dtwain_constants.DTWAIN_ERR_INVALID_PDFTEXTELEMENT = (-2505)
   dtwain_constants.DTWAIN_ERR_SETCAP_FAILED = (-2506)
   dtwain_constants.DTWAIN_ERR_CAP_INVALIDSTATE = (-2507)
   dtwain_constants.DTWAIN_ERR_GETCAP_FAILED = (-2508)
   dtwain_constants.DTWAIN_DE_CHKAUTOCAPTURE = 1
   dtwain_constants.DTWAIN_DE_CHKBATTERY = 2
   dtwain_constants.DTWAIN_DE_CHKDEVICEONLINE = 4
   dtwain_constants.DTWAIN_DE_CHKFLASH = 8
   dtwain_constants.DTWAIN_DE_CHKPOWERSUPPLY = 16
   dtwain_constants.DTWAIN_DE_CHKRESOLUTION = 32
   dtwain_constants.DTWAIN_DE_DEVICEADDED = 64
   dtwain_constants.DTWAIN_DE_DEVICEOFFLINE = 128
   dtwain_constants.DTWAIN_DE_DEVICEREADY = 256
   dtwain_constants.DTWAIN_DE_DEVICEREMOVED = 512
   dtwain_constants.DTWAIN_DE_IMAGECAPTURED = 1024
   dtwain_constants.DTWAIN_DE_IMAGEDELETED = 2048
   dtwain_constants.DTWAIN_DE_PAPERDOUBLEFEED = 4096
   dtwain_constants.DTWAIN_DE_PAPERJAM = 8192
   dtwain_constants.DTWAIN_DE_LAMPFAILURE = 16384
   dtwain_constants.DTWAIN_DE_POWERSAVE = 32768
   dtwain_constants.DTWAIN_DE_POWERSAVENOTIFY = 65536
   dtwain_constants.DTWAIN_DE_CUSTOMEVENTS = 0x8000
   dtwain_constants.DTWAIN_GETDE_EVENT = 0
   dtwain_constants.DTWAIN_GETDE_DEVNAME = 1
   dtwain_constants.DTWAIN_GETDE_BATTERYMINUTES = 2
   dtwain_constants.DTWAIN_GETDE_BATTERYPCT = 3
   dtwain_constants.DTWAIN_GETDE_XRESOLUTION = 4
   dtwain_constants.DTWAIN_GETDE_YRESOLUTION = 5
   dtwain_constants.DTWAIN_GETDE_FLASHUSED = 6
   dtwain_constants.DTWAIN_GETDE_AUTOCAPTURE = 7
   dtwain_constants.DTWAIN_GETDE_TIMEBEFORECAPTURE = 8
   dtwain_constants.DTWAIN_GETDE_TIMEBETWEENCAPTURES = 9
   dtwain_constants.DTWAIN_GETDE_POWERSUPPLY = 10
   dtwain_constants.DTWAIN_IMPRINTERTOPBEFORE = 1
   dtwain_constants.DTWAIN_IMPRINTERTOPAFTER = 2
   dtwain_constants.DTWAIN_IMPRINTERBOTTOMBEFORE = 4
   dtwain_constants.DTWAIN_IMPRINTERBOTTOMAFTER = 8
   dtwain_constants.DTWAIN_ENDORSERTOPBEFORE = 16
   dtwain_constants.DTWAIN_ENDORSERTOPAFTER = 32
   dtwain_constants.DTWAIN_ENDORSERBOTTOMBEFORE = 64
   dtwain_constants.DTWAIN_ENDORSERBOTTOMAFTER = 128
   dtwain_constants.DTWAIN_PM_SINGLESTRING = 0
   dtwain_constants.DTWAIN_PM_MULTISTRING = 1
   dtwain_constants.DTWAIN_PM_COMPOUNDSTRING = 2
   dtwain_constants.DTWAIN_TWTY_INT8 = 0x0000
   dtwain_constants.DTWAIN_TWTY_INT16 = 0x0001
   dtwain_constants.DTWAIN_TWTY_INT32 = 0x0002
   dtwain_constants.DTWAIN_TWTY_UINT8 = 0x0003
   dtwain_constants.DTWAIN_TWTY_UINT16 = 0x0004
   dtwain_constants.DTWAIN_TWTY_UINT32 = 0x0005
   dtwain_constants.DTWAIN_TWTY_BOOL = 0x0006
   dtwain_constants.DTWAIN_TWTY_FIX32 = 0x0007
   dtwain_constants.DTWAIN_TWTY_FRAME = 0x0008
   dtwain_constants.DTWAIN_TWTY_STR32 = 0x0009
   dtwain_constants.DTWAIN_TWTY_STR64 = 0x000A
   dtwain_constants.DTWAIN_TWTY_STR128 = 0x000B
   dtwain_constants.DTWAIN_TWTY_STR255 = 0x000C
   dtwain_constants.DTWAIN_TWTY_STR1024 = 0x000D
   dtwain_constants.DTWAIN_TWTY_UNI512 = 0x000E
   dtwain_constants.DTWAIN_EI_BARCODEX = 0x1200
   dtwain_constants.DTWAIN_EI_BARCODEY = 0x1201
   dtwain_constants.DTWAIN_EI_BARCODETEXT = 0x1202
   dtwain_constants.DTWAIN_EI_BARCODETYPE = 0x1203
   dtwain_constants.DTWAIN_EI_DESHADETOP = 0x1204
   dtwain_constants.DTWAIN_EI_DESHADELEFT = 0x1205
   dtwain_constants.DTWAIN_EI_DESHADEHEIGHT = 0x1206
   dtwain_constants.DTWAIN_EI_DESHADEWIDTH = 0x1207
   dtwain_constants.DTWAIN_EI_DESHADESIZE = 0x1208
   dtwain_constants.DTWAIN_EI_SPECKLESREMOVED = 0x1209
   dtwain_constants.DTWAIN_EI_HORZLINEXCOORD = 0x120A
   dtwain_constants.DTWAIN_EI_HORZLINEYCOORD = 0x120B
   dtwain_constants.DTWAIN_EI_HORZLINELENGTH = 0x120C
   dtwain_constants.DTWAIN_EI_HORZLINETHICKNESS = 0x120D
   dtwain_constants.DTWAIN_EI_VERTLINEXCOORD = 0x120E
   dtwain_constants.DTWAIN_EI_VERTLINEYCOORD = 0x120F
   dtwain_constants.DTWAIN_EI_VERTLINELENGTH = 0x1210
   dtwain_constants.DTWAIN_EI_VERTLINETHICKNESS = 0x1211
   dtwain_constants.DTWAIN_EI_PATCHCODE = 0x1212
   dtwain_constants.DTWAIN_EI_ENDORSEDTEXT = 0x1213
   dtwain_constants.DTWAIN_EI_FORMCONFIDENCE = 0x1214
   dtwain_constants.DTWAIN_EI_FORMTEMPLATEMATCH = 0x1215
   dtwain_constants.DTWAIN_EI_FORMTEMPLATEPAGEMATCH = 0x1216
   dtwain_constants.DTWAIN_EI_FORMHORZDOCOFFSET = 0x1217
   dtwain_constants.DTWAIN_EI_FORMVERTDOCOFFSET = 0x1218
   dtwain_constants.DTWAIN_EI_BARCODECOUNT = 0x1219
   dtwain_constants.DTWAIN_EI_BARCODECONFIDENCE = 0x121A
   dtwain_constants.DTWAIN_EI_BARCODEROTATION = 0x121B
   dtwain_constants.DTWAIN_EI_BARCODETEXTLENGTH = 0x121C
   dtwain_constants.DTWAIN_EI_DESHADECOUNT = 0x121D
   dtwain_constants.DTWAIN_EI_DESHADEBLACKCOUNTOLD = 0x121E
   dtwain_constants.DTWAIN_EI_DESHADEBLACKCOUNTNEW = 0x121F
   dtwain_constants.DTWAIN_EI_DESHADEBLACKRLMIN = 0x1220
   dtwain_constants.DTWAIN_EI_DESHADEBLACKRLMAX = 0x1221
   dtwain_constants.DTWAIN_EI_DESHADEWHITECOUNTOLD = 0x1222
   dtwain_constants.DTWAIN_EI_DESHADEWHITECOUNTNEW = 0x1223
   dtwain_constants.DTWAIN_EI_DESHADEWHITERLMIN = 0x1224
   dtwain_constants.DTWAIN_EI_DESHADEWHITERLAVE = 0x1225
   dtwain_constants.DTWAIN_EI_DESHADEWHITERLMAX = 0x1226
   dtwain_constants.DTWAIN_EI_BLACKSPECKLESREMOVED = 0x1227
   dtwain_constants.DTWAIN_EI_WHITESPECKLESREMOVED = 0x1228
   dtwain_constants.DTWAIN_EI_HORZLINECOUNT = 0x1229
   dtwain_constants.DTWAIN_EI_VERTLINECOUNT = 0x122A
   dtwain_constants.DTWAIN_EI_DESKEWSTATUS = 0x122B
   dtwain_constants.DTWAIN_EI_SKEWORIGINALANGLE = 0x122C
   dtwain_constants.DTWAIN_EI_SKEWFINALANGLE = 0x122D
   dtwain_constants.DTWAIN_EI_SKEWCONFIDENCE = 0x122E
   dtwain_constants.DTWAIN_EI_SKEWWINDOWX1 = 0x122F
   dtwain_constants.DTWAIN_EI_SKEWWINDOWY1 = 0x1230
   dtwain_constants.DTWAIN_EI_SKEWWINDOWX2 = 0x1231
   dtwain_constants.DTWAIN_EI_SKEWWINDOWY2 = 0x1232
   dtwain_constants.DTWAIN_EI_SKEWWINDOWX3 = 0x1233
   dtwain_constants.DTWAIN_EI_SKEWWINDOWY3 = 0x1234
   dtwain_constants.DTWAIN_EI_SKEWWINDOWX4 = 0x1235
   dtwain_constants.DTWAIN_EI_SKEWWINDOWY4 = 0x1236
   dtwain_constants.DTWAIN_EI_BOOKNAME = 0x1238
   dtwain_constants.DTWAIN_EI_CHAPTERNUMBER = 0x1239
   dtwain_constants.DTWAIN_EI_DOCUMENTNUMBER = 0x123A
   dtwain_constants.DTWAIN_EI_PAGENUMBER = 0x123B
   dtwain_constants.DTWAIN_EI_CAMERA = 0x123C
   dtwain_constants.DTWAIN_EI_FRAMENUMBER = 0x123D
   dtwain_constants.DTWAIN_EI_FRAME = 0x123E
   dtwain_constants.DTWAIN_EI_PIXELFLAVOR = 0x123F
   dtwain_constants.DTWAIN_EI_ICCPROFILE = 0x1240
   dtwain_constants.DTWAIN_EI_LASTSEGMENT = 0x1241
   dtwain_constants.DTWAIN_EI_SEGMENTNUMBER = 0x1242
   dtwain_constants.DTWAIN_EI_MAGDATA = 0x1243
   dtwain_constants.DTWAIN_EI_MAGTYPE = 0x1244
   dtwain_constants.DTWAIN_EI_PAGESIDE = 0x1245
   dtwain_constants.DTWAIN_EI_FILESYSTEMSOURCE = 0x1246
   dtwain_constants.DTWAIN_EI_IMAGEMERGED = 0x1247
   dtwain_constants.DTWAIN_EI_MAGDATALENGTH = 0x1248
   dtwain_constants.DTWAIN_EI_PAPERCOUNT = 0x1249
   dtwain_constants.DTWAIN_EI_PRINTERTEXT = 0x124A
   dtwain_constants.DTWAIN_EI_TWAINDIRECTMETADATA = 0x124B
   dtwain_constants.DTWAIN_EI_IAFIELDA_VALUE = 0x124C
   dtwain_constants.DTWAIN_EI_IAFIELDB_VALUE = 0x124D
   dtwain_constants.DTWAIN_EI_IAFIELDC_VALUE = 0x124E
   dtwain_constants.DTWAIN_EI_IAFIELDD_VALUE = 0x124F
   dtwain_constants.DTWAIN_EI_IAFIELDE_VALUE = 0x1250
   dtwain_constants.DTWAIN_EI_IALEVEL = 0x1251
   dtwain_constants.DTWAIN_EI_PRINTER = 0x1252
   dtwain_constants.DTWAIN_EI_BARCODETEXT2 = 0x1253
   dtwain_constants.DTWAIN_LOG_DECODE_SOURCE = 0x1      
   dtwain_constants.DTWAIN_LOG_DECODE_DEST = 0x2        
   dtwain_constants.DTWAIN_LOG_DECODE_TWMEMREF = 0x4    
   dtwain_constants.DTWAIN_LOG_DECODE_TWEVENT = 0x8     
   dtwain_constants.DTWAIN_LOG_CALLSTACK = 0x10         
   dtwain_constants.DTWAIN_LOG_ISTWAINMSG = 0x20        
   dtwain_constants.DTWAIN_LOG_INITFAILURE = 0x40       
   dtwain_constants.DTWAIN_LOG_LOWLEVELTWAIN = 0x80     
   dtwain_constants.DTWAIN_LOG_DECODE_BITMAP = 0x100    
   dtwain_constants.DTWAIN_LOG_NOTIFICATIONS = 0x200    
   dtwain_constants.DTWAIN_LOG_MISCELLANEOUS = 0x400    
   dtwain_constants.DTWAIN_LOG_DTWAINERRORS = 0x800     
   dtwain_constants.DTWAIN_LOG_USEFILE = 0x10000        
   dtwain_constants.DTWAIN_LOG_SHOWEXCEPTIONS = 0x20000 
   dtwain_constants.DTWAIN_LOG_ERRORMSGBOX = 0x40000    
   dtwain_constants.DTWAIN_LOG_USEBUFFER = 0x80000      
   dtwain_constants.DTWAIN_LOG_FILEAPPEND = 0x100000    
   dtwain_constants.DTWAIN_LOG_USECALLBACK = 0x200000   
   dtwain_constants.DTWAIN_LOG_USECRLF = 0x400000       
   dtwain_constants.DTWAIN_LOG_CONSOLE = 0x800000       
   dtwain_constants.DTWAIN_LOG_DEBUGMONITOR = 0x1000000 
   dtwain_constants.DTWAIN_LOG_USEWINDOW = 0x2000000    
   dtwain_constants.DTWAIN_LOG_CREATEDIRECTORY = 0x04000000
   dtwain_constants.DTWAIN_LOG_CONSOLEWITHHANDLER = (0x08000000  or  DTWAIN_LOG_CONSOLE)
   dtwain_constants.DTWAIN_LOG_ALL = (DTWAIN_LOG_DECODE_SOURCE  or  DTWAIN_LOG_DECODE_DEST  or  DTWAIN_LOG_DECODE_TWEVENT  or  DTWAIN_LOG_DECODE_TWMEMREF  or  DTWAIN_LOG_CALLSTACK  or  DTWAIN_LOG_ISTWAINMSG  or  DTWAIN_LOG_INITFAILURE  or  DTWAIN_LOG_LOWLEVELTWAIN  or  DTWAIN_LOG_NOTIFICATIONS  or  DTWAIN_LOG_MISCELLANEOUS  or  DTWAIN_LOG_DTWAINERRORS  or  DTWAIN_LOG_DECODE_BITMAP)
   dtwain_constants.DTWAIN_LOG_ALL_APPEND = 0xFFFFFFFF
   dtwain_constants.DTWAIN_TEMPDIR_CREATEDIRECTORY = DTWAIN_LOG_CREATEDIRECTORY
   dtwain_constants.DTWAINGCD_RETURNHANDLE = 1
   dtwain_constants.DTWAINGCD_COPYDATA = 2
   dtwain_constants.DTWAIN_BYPOSITION = 0
   dtwain_constants.DTWAIN_BYID = 1
   dtwain_constants.DTWAINSCD_USEHANDLE = 1
   dtwain_constants.DTWAINSCD_USEDATA = 2
   dtwain_constants.DTWAIN_PAGEFAIL_RETRY = 1
   dtwain_constants.DTWAIN_PAGEFAIL_TERMINATE = 2
   dtwain_constants.DTWAIN_MAXRETRY_ATTEMPTS = 3
   dtwain_constants.DTWAIN_RETRY_FOREVER = (-1)
   dtwain_constants.DTWAIN_PDF_NOSCALING = 128
   dtwain_constants.DTWAIN_PDF_FITPAGE = 256
   dtwain_constants.DTWAIN_PDF_VARIABLEPAGESIZE = 512
   dtwain_constants.DTWAIN_PDF_CUSTOMSIZE = 1024
   dtwain_constants.DTWAIN_PDF_USECOMPRESSION = 2048
   dtwain_constants.DTWAIN_PDF_CUSTOMSCALE = 4096
   dtwain_constants.DTWAIN_PDF_PIXELSPERMETERSIZE = 8192
   dtwain_constants.DTWAIN_PDF_ALLOWPRINTING = 2052
   dtwain_constants.DTWAIN_PDF_ALLOWMOD = 8
   dtwain_constants.DTWAIN_PDF_ALLOWCOPY = 16
   dtwain_constants.DTWAIN_PDF_ALLOWMODANNOTATIONS = 32
   dtwain_constants.DTWAIN_PDF_ALLOWFILLIN = 256
   dtwain_constants.DTWAIN_PDF_ALLOWEXTRACTION = 512
   dtwain_constants.DTWAIN_PDF_ALLOWASSEMBLY = 1024
   dtwain_constants.DTWAIN_PDF_ALLOWDEGRADEDPRINTING = 4
   dtwain_constants.DTWAIN_PDF_ALLOWALL = 0xFFFFFFFC
   dtwain_constants.DTWAIN_PDF_ALLOWANYMOD = (DTWAIN_PDF_ALLOWMOD  or  DTWAIN_PDF_ALLOWFILLIN  or  DTWAIN_PDF_ALLOWMODANNOTATIONS  or  DTWAIN_PDF_ALLOWASSEMBLY)
   dtwain_constants.DTWAIN_PDF_ALLOWANYPRINTING = (DTWAIN_PDF_ALLOWPRINTING  or  DTWAIN_PDF_ALLOWDEGRADEDPRINTING)
   dtwain_constants.DTWAIN_PDF_PORTRAIT = 0
   dtwain_constants.DTWAIN_PDF_LANDSCAPE = 1
   dtwain_constants.DTWAIN_PS_REGULAR = 0
   dtwain_constants.DTWAIN_PS_ENCAPSULATED = 1
   dtwain_constants.DTWAIN_BP_AUTODISCARD_NONE = 0
   dtwain_constants.DTWAIN_BP_AUTODISCARD_IMMEDIATE = 1
   dtwain_constants.DTWAIN_BP_AUTODISCARD_AFTERPROCESS = 2
   dtwain_constants.DTWAIN_BP_DETECTORIGINAL = 1
   dtwain_constants.DTWAIN_BP_DETECTADJUSTED = 2
   dtwain_constants.DTWAIN_BP_DETECTALL = (DTWAIN_BP_DETECTORIGINAL  or  DTWAIN_BP_DETECTADJUSTED)
   dtwain_constants.DTWAIN_BP_DISABLE = (-2)
   dtwain_constants.DTWAIN_BP_AUTO = (-1)
   dtwain_constants.DTWAIN_BP_AUTODISCARD_ANY = 0xFFFF
   dtwain_constants.DTWAIN_LP_REFLECTIVE = 0
   dtwain_constants.DTWAIN_LP_TRANSMISSIVE = 1
   dtwain_constants.DTWAIN_LS_RED = 0
   dtwain_constants.DTWAIN_LS_GREEN = 1
   dtwain_constants.DTWAIN_LS_BLUE = 2
   dtwain_constants.DTWAIN_LS_NONE = 3
   dtwain_constants.DTWAIN_LS_WHITE = 4
   dtwain_constants.DTWAIN_LS_UV = 5
   dtwain_constants.DTWAIN_LS_IR = 6
   dtwain_constants.DTWAIN_DLG_SORTNAMES = 1
   dtwain_constants.DTWAIN_DLG_CENTER = 2
   dtwain_constants.DTWAIN_DLG_CENTER_SCREEN = 4
   dtwain_constants.DTWAIN_DLG_USETEMPLATE = 8
   dtwain_constants.DTWAIN_DLG_CLEAR_PARAMS = 16
   dtwain_constants.DTWAIN_DLG_HORIZONTALSCROLL = 32
   dtwain_constants.DTWAIN_DLG_USEINCLUDENAMES = 64
   dtwain_constants.DTWAIN_DLG_USEEXCLUDENAMES = 128
   dtwain_constants.DTWAIN_DLG_USENAMEMAPPING = 256
   dtwain_constants.DTWAIN_DLG_TOPMOSTWINDOW = 1024
   dtwain_constants.DTWAIN_DLG_OPENONSELECT = 2048
   dtwain_constants.DTWAIN_DLG_NOOPENONSELECT = 4096
   dtwain_constants.DTWAIN_DLG_HIGHLIGHTFIRST = 8192
   dtwain_constants.DTWAIN_DLG_SAVELASTSCREENPOS = 16384
   dtwain_constants.DTWAIN_DLG_CENTER_CURRENT_MONITOR = 32768
   dtwain_constants.DTWAIN_DLG_CONSOLEASPARENT = 65536
   dtwain_constants.DTWAIN_RES_ENGLISH = 0
   dtwain_constants.DTWAIN_RES_FRENCH = 1
   dtwain_constants.DTWAIN_RES_SPANISH = 2
   dtwain_constants.DTWAIN_RES_DUTCH = 3
   dtwain_constants.DTWAIN_RES_GERMAN = 4
   dtwain_constants.DTWAIN_RES_ITALIAN = 5
   dtwain_constants.DTWAIN_AL_ALARM = 0
   dtwain_constants.DTWAIN_AL_FEEDERERROR = 1
   dtwain_constants.DTWAIN_AL_FEEDERWARNING = 2
   dtwain_constants.DTWAIN_AL_BARCODE = 3
   dtwain_constants.DTWAIN_AL_DOUBLEFEED = 4
   dtwain_constants.DTWAIN_AL_JAM = 5
   dtwain_constants.DTWAIN_AL_PATCHCODE = 6
   dtwain_constants.DTWAIN_AL_POWER = 7
   dtwain_constants.DTWAIN_AL_SKEW = 8
   dtwain_constants.DTWAIN_FT_CAMERA = 0
   dtwain_constants.DTWAIN_FT_CAMERATOP = 1
   dtwain_constants.DTWAIN_FT_CAMERABOTTOM = 2
   dtwain_constants.DTWAIN_FT_CAMERAPREVIEW = 3
   dtwain_constants.DTWAIN_FT_DOMAIN = 4
   dtwain_constants.DTWAIN_FT_HOST = 5
   dtwain_constants.DTWAIN_FT_DIRECTORY = 6
   dtwain_constants.DTWAIN_FT_IMAGE = 7
   dtwain_constants.DTWAIN_FT_UNKNOWN = 8
   dtwain_constants.DTWAIN_NF_NONE = 0
   dtwain_constants.DTWAIN_NF_AUTO = 1
   dtwain_constants.DTWAIN_NF_LONEPIXEL = 2
   dtwain_constants.DTWAIN_NF_MAJORITYRULE = 3
   dtwain_constants.DTWAIN_CB_AUTO = 0
   dtwain_constants.DTWAIN_CB_CLEAR = 1
   dtwain_constants.DTWAIN_CB_NOCLEAR = 2
   dtwain_constants.DTWAIN_FA_NONE = 0
   dtwain_constants.DTWAIN_FA_LEFT = 1
   dtwain_constants.DTWAIN_FA_CENTER = 2
   dtwain_constants.DTWAIN_FA_RIGHT = 3
   dtwain_constants.DTWAIN_PF_CHOCOLATE = 0
   dtwain_constants.DTWAIN_PF_VANILLA = 1
   dtwain_constants.DTWAIN_FO_FIRSTPAGEFIRST = 0
   dtwain_constants.DTWAIN_FO_LASTPAGEFIRST = 1
   dtwain_constants.DTWAIN_INCREMENT_STATIC = 0
   dtwain_constants.DTWAIN_INCREMENT_DYNAMIC = 1
   dtwain_constants.DTWAIN_INCREMENT_DEFAULT = -1
   dtwain_constants.DTWAIN_MANDUP_FACEUPTOPPAGE = 0
   dtwain_constants.DTWAIN_MANDUP_FACEUPBOTTOMPAGE = 1
   dtwain_constants.DTWAIN_MANDUP_FACEDOWNTOPPAGE = 2
   dtwain_constants.DTWAIN_MANDUP_FACEDOWNBOTTOMPAGE = 3
   dtwain_constants.DTWAIN_FILESAVE_DEFAULT = 0
   dtwain_constants.DTWAIN_FILESAVE_UICLOSE = 1
   dtwain_constants.DTWAIN_FILESAVE_SOURCECLOSE = 2
   dtwain_constants.DTWAIN_FILESAVE_ENDACQUIRE = 3
   dtwain_constants.DTWAIN_FILESAVE_MANUALSAVE = 4
   dtwain_constants.DTWAIN_FILESAVE_SAVEINCOMPLETE = 128
   dtwain_constants.DTWAIN_MANDUP_SCANOK = 1
   dtwain_constants.DTWAIN_MANDUP_SIDE1RESCAN = 2
   dtwain_constants.DTWAIN_MANDUP_SIDE2RESCAN = 3
   dtwain_constants.DTWAIN_MANDUP_RESCANALL = 4
   dtwain_constants.DTWAIN_MANDUP_PAGEMISSING = 5
   dtwain_constants.DTWAIN_DEMODLL_VERSION = 0x00000001
   dtwain_constants.DTWAIN_UNLICENSED_VERSION = 0x00000002
   dtwain_constants.DTWAIN_COMPANY_VERSION = 0x00000004
   dtwain_constants.DTWAIN_GENERAL_VERSION = 0x00000008
   dtwain_constants.DTWAIN_DEVELOP_VERSION = 0x00000010
   dtwain_constants.DTWAIN_JAVA_VERSION = 0x00000020
   dtwain_constants.DTWAIN_TOOLKIT_VERSION = 0x00000040
   dtwain_constants.DTWAIN_LIMITEDDLL_VERSION = 0x00000080
   dtwain_constants.DTWAIN_STATICLIB_VERSION = 0x00000100
   dtwain_constants.DTWAIN_STATICLIB_STDCALL_VERSION = 0x00000200
   dtwain_constants.DTWAIN_PDF_VERSION = 0x00010000
   dtwain_constants.DTWAIN_TWAINSAVE_VERSION = 0x00020000
   dtwain_constants.DTWAIN_OCR_VERSION = 0x00040000
   dtwain_constants.DTWAIN_BARCODE_VERSION = 0x00080000
   dtwain_constants.DTWAIN_ACTIVEX_VERSION = 0x00100000
   dtwain_constants.DTWAIN_32BIT_VERSION = 0x00200000
   dtwain_constants.DTWAIN_64BIT_VERSION = 0x00400000
   dtwain_constants.DTWAIN_UNICODE_VERSION = 0x00800000
   dtwain_constants.DTWAIN_OPENSOURCE_VERSION = 0x01000000
   dtwain_constants.DTWAIN_CALLSTACK_LOGGING = 0x02000000
   dtwain_constants.DTWAIN_CALLSTACK_LOGGING_PLUS = 0x04000000
   dtwain_constants.DTWAINOCR_RETURNHANDLE = 1
   dtwain_constants.DTWAINOCR_COPYDATA = 2
   dtwain_constants.DTWAIN_OCRINFO_CHAR = 0
   dtwain_constants.DTWAIN_OCRINFO_CHARXPOS = 1
   dtwain_constants.DTWAIN_OCRINFO_CHARYPOS = 2
   dtwain_constants.DTWAIN_OCRINFO_CHARXWIDTH = 3
   dtwain_constants.DTWAIN_OCRINFO_CHARYWIDTH = 4
   dtwain_constants.DTWAIN_OCRINFO_CHARCONFIDENCE = 5
   dtwain_constants.DTWAIN_OCRINFO_PAGENUM = 6
   dtwain_constants.DTWAIN_OCRINFO_OCRENGINE = 7
   dtwain_constants.DTWAIN_OCRINFO_TEXTLENGTH = 8
   dtwain_constants.DTWAIN_PDFPAGETYPE_COLOR = 0
   dtwain_constants.DTWAIN_PDFPAGETYPE_BW = 1
   dtwain_constants.DTWAIN_TWAINDSM_LEGACY = 1
   dtwain_constants.DTWAIN_TWAINDSM_VERSION2 = 2
   dtwain_constants.DTWAIN_TWAINDSM_LATESTVERSION = 4
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_NOTFOUND = (-1)
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_WSO = 0
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_WOS = 1
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_SWO = 2
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_SOW = 3
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_OWS = 4
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_OSW = 5
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_W = 6
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_S = 7
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_O = 8
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_WS = 9
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_WO = 10
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_SW = 11
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_SO = 12
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_OW = 13
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_OS = 14
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_C = 15
   dtwain_constants.DTWAIN_TWAINDSMSEARCH_U = 16
   dtwain_constants.DTWAIN_PDFPOLARITY_POSITIVE = 1
   dtwain_constants.DTWAIN_PDFPOLARITY_NEGATIVE = 2
   dtwain_constants.DTWAIN_TWPF_NORMAL = 0
   dtwain_constants.DTWAIN_TWPF_BOLD = 1
   dtwain_constants.DTWAIN_TWPF_ITALIC = 2
   dtwain_constants.DTWAIN_TWPF_LARGESIZE = 3
   dtwain_constants.DTWAIN_TWPF_SMALLSIZE = 4
   dtwain_constants.DTWAIN_TWCT_PAGE = 0
   dtwain_constants.DTWAIN_TWCT_PATCH1 = 1
   dtwain_constants.DTWAIN_TWCT_PATCH2 = 2
   dtwain_constants.DTWAIN_TWCT_PATCH3 = 3
   dtwain_constants.DTWAIN_TWCT_PATCH4 = 4
   dtwain_constants.DTWAIN_TWCT_PATCH5 = 5
   dtwain_constants.DTWAIN_TWCT_PATCH6 = 6
   dtwain_constants.DTWAIN_AUTOSIZE_NONE = 0
   dtwain_constants.DTWAIN_CV_CAPCUSTOMBASE = 0x8000
   dtwain_constants.DTWAIN_CV_CAPXFERCOUNT = 0x0001
   dtwain_constants.DTWAIN_CV_ICAPCOMPRESSION = 0x0100
   dtwain_constants.DTWAIN_CV_ICAPPIXELTYPE = 0x0101
   dtwain_constants.DTWAIN_CV_ICAPUNITS = 0x0102
   dtwain_constants.DTWAIN_CV_ICAPXFERMECH = 0x0103
   dtwain_constants.DTWAIN_CV_CAPAUTHOR = 0x1000
   dtwain_constants.DTWAIN_CV_CAPCAPTION = 0x1001
   dtwain_constants.DTWAIN_CV_CAPFEEDERENABLED = 0x1002
   dtwain_constants.DTWAIN_CV_CAPFEEDERLOADED = 0x1003
   dtwain_constants.DTWAIN_CV_CAPTIMEDATE = 0x1004
   dtwain_constants.DTWAIN_CV_CAPSUPPORTEDCAPS = 0x1005
   dtwain_constants.DTWAIN_CV_CAPEXTENDEDCAPS = 0x1006
   dtwain_constants.DTWAIN_CV_CAPAUTOFEED = 0x1007
   dtwain_constants.DTWAIN_CV_CAPCLEARPAGE = 0x1008
   dtwain_constants.DTWAIN_CV_CAPFEEDPAGE = 0x1009
   dtwain_constants.DTWAIN_CV_CAPREWINDPAGE = 0x100a
   dtwain_constants.DTWAIN_CV_CAPINDICATORS = 0x100b
   dtwain_constants.DTWAIN_CV_CAPSUPPORTEDCAPSEXT = 0x100c
   dtwain_constants.DTWAIN_CV_CAPPAPERDETECTABLE = 0x100d
   dtwain_constants.DTWAIN_CV_CAPUICONTROLLABLE = 0x100e
   dtwain_constants.DTWAIN_CV_CAPDEVICEONLINE = 0x100f
   dtwain_constants.DTWAIN_CV_CAPAUTOSCAN = 0x1010
   dtwain_constants.DTWAIN_CV_CAPTHUMBNAILSENABLED = 0x1011
   dtwain_constants.DTWAIN_CV_CAPDUPLEX = 0x1012
   dtwain_constants.DTWAIN_CV_CAPDUPLEXENABLED = 0x1013
   dtwain_constants.DTWAIN_CV_CAPENABLEDSUIONLY = 0x1014
   dtwain_constants.DTWAIN_CV_CAPCUSTOMDSDATA = 0x1015
   dtwain_constants.DTWAIN_CV_CAPENDORSER = 0x1016
   dtwain_constants.DTWAIN_CV_CAPJOBCONTROL = 0x1017
   dtwain_constants.DTWAIN_CV_CAPALARMS = 0x1018
   dtwain_constants.DTWAIN_CV_CAPALARMVOLUME = 0x1019
   dtwain_constants.DTWAIN_CV_CAPAUTOMATICCAPTURE = 0x101a
   dtwain_constants.DTWAIN_CV_CAPTIMEBEFOREFIRSTCAPTURE = 0x101b
   dtwain_constants.DTWAIN_CV_CAPTIMEBETWEENCAPTURES = 0x101c
   dtwain_constants.DTWAIN_CV_CAPCLEARBUFFERS = 0x101d
   dtwain_constants.DTWAIN_CV_CAPMAXBATCHBUFFERS = 0x101e
   dtwain_constants.DTWAIN_CV_CAPDEVICETIMEDATE = 0x101f
   dtwain_constants.DTWAIN_CV_CAPPOWERSUPPLY = 0x1020
   dtwain_constants.DTWAIN_CV_CAPCAMERAPREVIEWUI = 0x1021
   dtwain_constants.DTWAIN_CV_CAPDEVICEEVENT = 0x1022
   dtwain_constants.DTWAIN_CV_CAPPAGEMULTIPLEACQUIRE = 0x1023
   dtwain_constants.DTWAIN_CV_CAPSERIALNUMBER = 0x1024
   dtwain_constants.DTWAIN_CV_CAPFILESYSTEM = 0x1025
   dtwain_constants.DTWAIN_CV_CAPPRINTER = 0x1026
   dtwain_constants.DTWAIN_CV_CAPPRINTERENABLED = 0x1027
   dtwain_constants.DTWAIN_CV_CAPPRINTERINDEX = 0x1028
   dtwain_constants.DTWAIN_CV_CAPPRINTERMODE = 0x1029
   dtwain_constants.DTWAIN_CV_CAPPRINTERSTRING = 0x102a
   dtwain_constants.DTWAIN_CV_CAPPRINTERSUFFIX = 0x102b
   dtwain_constants.DTWAIN_CV_CAPLANGUAGE = 0x102c
   dtwain_constants.DTWAIN_CV_CAPFEEDERALIGNMENT = 0x102d
   dtwain_constants.DTWAIN_CV_CAPFEEDERORDER = 0x102e
   dtwain_constants.DTWAIN_CV_CAPPAPERBINDING = 0x102f
   dtwain_constants.DTWAIN_CV_CAPREACQUIREALLOWED = 0x1030
   dtwain_constants.DTWAIN_CV_CAPPASSTHRU = 0x1031
   dtwain_constants.DTWAIN_CV_CAPBATTERYMINUTES = 0x1032
   dtwain_constants.DTWAIN_CV_CAPBATTERYPERCENTAGE = 0x1033
   dtwain_constants.DTWAIN_CV_CAPPOWERDOWNTIME = 0x1034
   dtwain_constants.DTWAIN_CV_CAPSEGMENTED = 0x1035
   dtwain_constants.DTWAIN_CV_CAPCAMERAENABLED = 0x1036
   dtwain_constants.DTWAIN_CV_CAPCAMERAORDER = 0x1037
   dtwain_constants.DTWAIN_CV_CAPMICRENABLED = 0x1038
   dtwain_constants.DTWAIN_CV_CAPFEEDERPREP = 0x1039
   dtwain_constants.DTWAIN_CV_CAPFEEDERPOCKET = 0x103a
   dtwain_constants.DTWAIN_CV_CAPAUTOMATICSENSEMEDIUM = 0x103b
   dtwain_constants.DTWAIN_CV_CAPCUSTOMINTERFACEGUID = 0x103c
   dtwain_constants.DTWAIN_CV_CAPSUPPORTEDCAPSSEGMENTUNIQUE = 0x103d
   dtwain_constants.DTWAIN_CV_CAPSUPPORTEDDATS = 0x103e
   dtwain_constants.DTWAIN_CV_CAPDOUBLEFEEDDETECTION = 0x103f
   dtwain_constants.DTWAIN_CV_CAPDOUBLEFEEDDETECTIONLENGTH = 0x1040
   dtwain_constants.DTWAIN_CV_CAPDOUBLEFEEDDETECTIONSENSITIVITY = 0x1041
   dtwain_constants.DTWAIN_CV_CAPDOUBLEFEEDDETECTIONRESPONSE = 0x1042
   dtwain_constants.DTWAIN_CV_CAPPAPERHANDLING = 0x1043
   dtwain_constants.DTWAIN_CV_CAPINDICATORSMODE = 0x1044
   dtwain_constants.DTWAIN_CV_CAPPRINTERVERTICALOFFSET = 0x1045
   dtwain_constants.DTWAIN_CV_CAPPOWERSAVETIME = 0x1046
   dtwain_constants.DTWAIN_CV_CAPPRINTERCHARROTATION = 0x1047
   dtwain_constants.DTWAIN_CV_CAPPRINTERFONTSTYLE = 0x1048
   dtwain_constants.DTWAIN_CV_CAPPRINTERINDEXLEADCHAR = 0x1049
   dtwain_constants.DTWAIN_CV_CAPIMAGEADDRESSENABLED = 0x1050
   dtwain_constants.DTWAIN_CV_CAPIAFIELDA_LEVEL = 0x1051
   dtwain_constants.DTWAIN_CV_CAPIAFIELDB_LEVEL = 0x1052
   dtwain_constants.DTWAIN_CV_CAPIAFIELDC_LEVEL = 0x1053
   dtwain_constants.DTWAIN_CV_CAPIAFIELDD_LEVEL = 0x1054
   dtwain_constants.DTWAIN_CV_CAPIAFIELDE_LEVEL = 0x1055
   dtwain_constants.DTWAIN_CV_CAPIAFIELDA_PRINTFORMAT = 0x1056
   dtwain_constants.DTWAIN_CV_CAPIAFIELDB_PRINTFORMAT = 0x1057
   dtwain_constants.DTWAIN_CV_CAPIAFIELDC_PRINTFORMAT = 0x1058
   dtwain_constants.DTWAIN_CV_CAPIAFIELDD_PRINTFORMAT = 0x1059
   dtwain_constants.DTWAIN_CV_CAPIAFIELDE_PRINTFORMAT = 0x105A
   dtwain_constants.DTWAIN_CV_CAPIAFIELDA_VALUE = 0x105B
   dtwain_constants.DTWAIN_CV_CAPIAFIELDB_VALUE = 0x105C
   dtwain_constants.DTWAIN_CV_CAPIAFIELDC_VALUE = 0x105D
   dtwain_constants.DTWAIN_CV_CAPIAFIELDD_VALUE = 0x105E
   dtwain_constants.DTWAIN_CV_CAPIAFIELDE_VALUE = 0x105F
   dtwain_constants.DTWAIN_CV_CAPIAFIELDA_LASTPAGE = 0x1060
   dtwain_constants.DTWAIN_CV_CAPIAFIELDB_LASTPAGE = 0x1061
   dtwain_constants.DTWAIN_CV_CAPIAFIELDC_LASTPAGE = 0x1062
   dtwain_constants.DTWAIN_CV_CAPIAFIELDD_LASTPAGE = 0x1063
   dtwain_constants.DTWAIN_CV_CAPIAFIELDE_LASTPAGE = 0x1064
   dtwain_constants.DTWAIN_CV_CAPPRINTERINDEXMAXVALUE = 0x104A
   dtwain_constants.DTWAIN_CV_CAPPRINTERINDEXNUMDIGITS = 0x104B
   dtwain_constants.DTWAIN_CV_CAPPRINTERINDEXSTEP = 0x104C
   dtwain_constants.DTWAIN_CV_CAPPRINTERINDEXTRIGGER = 0x104D
   dtwain_constants.DTWAIN_CV_CAPPRINTERSTRINGPREVIEW = 0x104E
   dtwain_constants.DTWAIN_CV_ICAPAUTOBRIGHT = 0x1100
   dtwain_constants.DTWAIN_CV_ICAPBRIGHTNESS = 0x1101
   dtwain_constants.DTWAIN_CV_ICAPCONTRAST = 0x1103
   dtwain_constants.DTWAIN_CV_ICAPCUSTHALFTONE = 0x1104
   dtwain_constants.DTWAIN_CV_ICAPEXPOSURETIME = 0x1105
   dtwain_constants.DTWAIN_CV_ICAPFILTER = 0x1106
   dtwain_constants.DTWAIN_CV_ICAPFLASHUSED = 0x1107
   dtwain_constants.DTWAIN_CV_ICAPGAMMA = 0x1108
   dtwain_constants.DTWAIN_CV_ICAPHALFTONES = 0x1109
   dtwain_constants.DTWAIN_CV_ICAPHIGHLIGHT = 0x110a
   dtwain_constants.DTWAIN_CV_ICAPIMAGEFILEFORMAT = 0x110c
   dtwain_constants.DTWAIN_CV_ICAPLAMPSTATE = 0x110d
   dtwain_constants.DTWAIN_CV_ICAPLIGHTSOURCE = 0x110e
   dtwain_constants.DTWAIN_CV_ICAPORIENTATION = 0x1110
   dtwain_constants.DTWAIN_CV_ICAPPHYSICALWIDTH = 0x1111
   dtwain_constants.DTWAIN_CV_ICAPPHYSICALHEIGHT = 0x1112
   dtwain_constants.DTWAIN_CV_ICAPSHADOW = 0x1113
   dtwain_constants.DTWAIN_CV_ICAPFRAMES = 0x1114
   dtwain_constants.DTWAIN_CV_ICAPXNATIVERESOLUTION = 0x1116
   dtwain_constants.DTWAIN_CV_ICAPYNATIVERESOLUTION = 0x1117
   dtwain_constants.DTWAIN_CV_ICAPXRESOLUTION = 0x1118
   dtwain_constants.DTWAIN_CV_ICAPYRESOLUTION = 0x1119
   dtwain_constants.DTWAIN_CV_ICAPMAXFRAMES = 0x111a
   dtwain_constants.DTWAIN_CV_ICAPTILES = 0x111b
   dtwain_constants.DTWAIN_CV_ICAPBITORDER = 0x111c
   dtwain_constants.DTWAIN_CV_ICAPCCITTKFACTOR = 0x111d
   dtwain_constants.DTWAIN_CV_ICAPLIGHTPATH = 0x111e
   dtwain_constants.DTWAIN_CV_ICAPPIXELFLAVOR = 0x111f
   dtwain_constants.DTWAIN_CV_ICAPPLANARCHUNKY = 0x1120
   dtwain_constants.DTWAIN_CV_ICAPROTATION = 0x1121
   dtwain_constants.DTWAIN_CV_ICAPSUPPORTEDSIZES = 0x1122
   dtwain_constants.DTWAIN_CV_ICAPTHRESHOLD = 0x1123
   dtwain_constants.DTWAIN_CV_ICAPXSCALING = 0x1124
   dtwain_constants.DTWAIN_CV_ICAPYSCALING = 0x1125
   dtwain_constants.DTWAIN_CV_ICAPBITORDERCODES = 0x1126
   dtwain_constants.DTWAIN_CV_ICAPPIXELFLAVORCODES = 0x1127
   dtwain_constants.DTWAIN_CV_ICAPJPEGPIXELTYPE = 0x1128
   dtwain_constants.DTWAIN_CV_ICAPTIMEFILL = 0x112a
   dtwain_constants.DTWAIN_CV_ICAPBITDEPTH = 0x112b
   dtwain_constants.DTWAIN_CV_ICAPBITDEPTHREDUCTION = 0x112c
   dtwain_constants.DTWAIN_CV_ICAPUNDEFINEDIMAGESIZE = 0x112d
   dtwain_constants.DTWAIN_CV_ICAPIMAGEDATASET = 0x112e
   dtwain_constants.DTWAIN_CV_ICAPEXTIMAGEINFO = 0x112f
   dtwain_constants.DTWAIN_CV_ICAPMINIMUMHEIGHT = 0x1130
   dtwain_constants.DTWAIN_CV_ICAPMINIMUMWIDTH = 0x1131
   dtwain_constants.DTWAIN_CV_ICAPAUTOBORDERDETECTION = 0x1132
   dtwain_constants.DTWAIN_CV_ICAPAUTODESKEW = 0x1133
   dtwain_constants.DTWAIN_CV_ICAPAUTODISCARDBLANKPAGES = 0x1134
   dtwain_constants.DTWAIN_CV_ICAPAUTOROTATE = 0x1135
   dtwain_constants.DTWAIN_CV_ICAPFLIPROTATION = 0x1136
   dtwain_constants.DTWAIN_CV_ICAPBARCODEDETECTIONENABLED = 0x1137
   dtwain_constants.DTWAIN_CV_ICAPSUPPORTEDBARCODETYPES = 0x1138
   dtwain_constants.DTWAIN_CV_ICAPBARCODEMAXSEARCHPRIORITIES = 0x1139
   dtwain_constants.DTWAIN_CV_ICAPBARCODESEARCHPRIORITIES = 0x113a
   dtwain_constants.DTWAIN_CV_ICAPBARCODESEARCHMODE = 0x113b
   dtwain_constants.DTWAIN_CV_ICAPBARCODEMAXRETRIES = 0x113c
   dtwain_constants.DTWAIN_CV_ICAPBARCODETIMEOUT = 0x113d
   dtwain_constants.DTWAIN_CV_ICAPZOOMFACTOR = 0x113e
   dtwain_constants.DTWAIN_CV_ICAPPATCHCODEDETECTIONENABLED = 0x113f
   dtwain_constants.DTWAIN_CV_ICAPSUPPORTEDPATCHCODETYPES = 0x1140
   dtwain_constants.DTWAIN_CV_ICAPPATCHCODEMAXSEARCHPRIORITIES = 0x1141
   dtwain_constants.DTWAIN_CV_ICAPPATCHCODESEARCHPRIORITIES = 0x1142
   dtwain_constants.DTWAIN_CV_ICAPPATCHCODESEARCHMODE = 0x1143
   dtwain_constants.DTWAIN_CV_ICAPPATCHCODEMAXRETRIES = 0x1144
   dtwain_constants.DTWAIN_CV_ICAPPATCHCODETIMEOUT = 0x1145
   dtwain_constants.DTWAIN_CV_ICAPFLASHUSED2 = 0x1146
   dtwain_constants.DTWAIN_CV_ICAPIMAGEFILTER = 0x1147
   dtwain_constants.DTWAIN_CV_ICAPNOISEFILTER = 0x1148
   dtwain_constants.DTWAIN_CV_ICAPOVERSCAN = 0x1149
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICBORDERDETECTION = 0x1150
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICDESKEW = 0x1151
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICROTATE = 0x1152
   dtwain_constants.DTWAIN_CV_ICAPJPEGQUALITY = 0x1153
   dtwain_constants.DTWAIN_CV_ICAPFEEDERTYPE = 0x1154
   dtwain_constants.DTWAIN_CV_ICAPICCPROFILE = 0x1155
   dtwain_constants.DTWAIN_CV_ICAPAUTOSIZE = 0x1156
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICCROPUSESFRAME = 0x1157
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICLENGTHDETECTION = 0x1158
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICCOLORENABLED = 0x1159
   dtwain_constants.DTWAIN_CV_ICAPAUTOMATICCOLORNONCOLORPIXELTYPE = 0x115a
   dtwain_constants.DTWAIN_CV_ICAPCOLORMANAGEMENTENABLED = 0x115b
   dtwain_constants.DTWAIN_CV_ICAPIMAGEMERGE = 0x115c
   dtwain_constants.DTWAIN_CV_ICAPIMAGEMERGEHEIGHTTHRESHOLD = 0x115d
   dtwain_constants.DTWAIN_CV_ICAPSUPPORTEDEXTIMAGEINFO = 0x115e
   dtwain_constants.DTWAIN_CV_ICAPFILMTYPE = 0x115f
   dtwain_constants.DTWAIN_CV_ICAPMIRROR = 0x1160
   dtwain_constants.DTWAIN_CV_ICAPJPEGSUBSAMPLING = 0x1161
   dtwain_constants.DTWAIN_CV_ACAPAUDIOFILEFORMAT = 0x1201
   dtwain_constants.DTWAIN_CV_ACAPXFERMECH = 0x1202
   dtwain_constants.DTWAIN_OCRCV_IMAGEFILEFORMAT = 0x1000
   dtwain_constants.DTWAIN_OCRCV_DESKEW = 0x1001
   dtwain_constants.DTWAIN_OCRCV_DESHADE = 0x1002
   dtwain_constants.DTWAIN_OCRCV_ORIENTATION = 0x1003
   dtwain_constants.DTWAIN_OCRCV_NOISEREMOVE = 0x1004
   dtwain_constants.DTWAIN_OCRCV_LINEREMOVE = 0x1005
   dtwain_constants.DTWAIN_OCRCV_INVERTPAGE = 0x1006
   dtwain_constants.DTWAIN_OCRCV_INVERTZONES = 0x1007
   dtwain_constants.DTWAIN_OCRCV_LINEREJECT = 0x1008
   dtwain_constants.DTWAIN_OCRCV_CHARACTERREJECT = 0x1009
   dtwain_constants.DTWAIN_OCRCV_ERRORREPORTMODE = 0x1010
   dtwain_constants.DTWAIN_OCRCV_ERRORREPORTFILE = 0x1011
   dtwain_constants.DTWAIN_OCRCV_PIXELTYPE = 0x1012
   dtwain_constants.DTWAIN_OCRCV_BITDEPTH = 0x1013
   dtwain_constants.DTWAIN_OCRCV_RETURNCHARINFO = 0x1014
   dtwain_constants.DTWAIN_OCRCV_NATIVEFILEFORMAT = 0x1015
   dtwain_constants.DTWAIN_OCRCV_MPNATIVEFILEFORMAT = 0x1016
   dtwain_constants.DTWAIN_OCRCV_SUPPORTEDCAPS = 0x1017
   dtwain_constants.DTWAIN_OCRCV_DISABLECHARACTERS = 0x1018
   dtwain_constants.DTWAIN_OCRCV_REMOVECONTROLCHARS = 0x1019
   dtwain_constants.DTWAIN_OCRORIENT_OFF = 0
   dtwain_constants.DTWAIN_OCRORIENT_AUTO = 1
   dtwain_constants.DTWAIN_OCRORIENT_90 = 2
   dtwain_constants.DTWAIN_OCRORIENT_180 = 3
   dtwain_constants.DTWAIN_OCRORIENT_270 = 4
   dtwain_constants.DTWAIN_OCRIMAGEFORMAT_AUTO = 10000
   dtwain_constants.DTWAIN_OCRERROR_MODENONE = 0
   dtwain_constants.DTWAIN_OCRERROR_SHOWMSGBOX = 1
   dtwain_constants.DTWAIN_OCRERROR_WRITEFILE = 2
   dtwain_constants.DTWAIN_PDFTEXT_ALLPAGES = 0x00000001
   dtwain_constants.DTWAIN_PDFTEXT_EVENPAGES = 0x00000002
   dtwain_constants.DTWAIN_PDFTEXT_ODDPAGES = 0x00000004
   dtwain_constants.DTWAIN_PDFTEXT_FIRSTPAGE = 0x00000008
   dtwain_constants.DTWAIN_PDFTEXT_LASTPAGE = 0x00000010
   dtwain_constants.DTWAIN_PDFTEXT_CURRENTPAGE = 0x00000020
   dtwain_constants.DTWAIN_PDFTEXT_DISABLED = 0x00000040
   dtwain_constants.DTWAIN_PDFTEXT_TOPLEFT = 0x00000100
   dtwain_constants.DTWAIN_PDFTEXT_TOPRIGHT = 0x00000200
   dtwain_constants.DTWAIN_PDFTEXT_HORIZCENTER = 0x00000400
   dtwain_constants.DTWAIN_PDFTEXT_VERTCENTER = 0x00000800
   dtwain_constants.DTWAIN_PDFTEXT_BOTTOMLEFT = 0x00001000
   dtwain_constants.DTWAIN_PDFTEXT_BOTTOMRIGHT = 0x00002000
   dtwain_constants.DTWAIN_PDFTEXT_BOTTOMCENTER = 0x00004000
   dtwain_constants.DTWAIN_PDFTEXT_TOPCENTER = 0x00008000
   dtwain_constants.DTWAIN_PDFTEXT_XCENTER = 0x00010000
   dtwain_constants.DTWAIN_PDFTEXT_YCENTER = 0x00020000
   dtwain_constants.DTWAIN_PDFTEXT_NOSCALING = 0x00100000
   dtwain_constants.DTWAIN_PDFTEXT_NOCHARSPACING = 0x00200000
   dtwain_constants.DTWAIN_PDFTEXT_NOWORDSPACING = 0x00400000
   dtwain_constants.DTWAIN_PDFTEXT_NOSTROKEWIDTH = 0x00800000
   dtwain_constants.DTWAIN_PDFTEXT_NORENDERMODE = 0x01000000
   dtwain_constants.DTWAIN_PDFTEXT_NORGBCOLOR = 0x02000000
   dtwain_constants.DTWAIN_PDFTEXT_NOFONTSIZE = 0x04000000
   dtwain_constants.DTWAIN_PDFTEXT_NOABSPOSITION = 0x08000000
   dtwain_constants.DTWAIN_PDFTEXT_NOROTATION = 0x10000000
   dtwain_constants.DTWAIN_PDFTEXT_NOSKEWING = 0x20000000
   dtwain_constants.DTWAIN_PDFTEXT_NOSCALINGXY = 0x40000000
   dtwain_constants.DTWAIN_PDFTEXT_IGNOREALL = 0xFFF00000
   dtwain_constants.DTWAIN_FONT_COURIER = 0
   dtwain_constants.DTWAIN_FONT_COURIERBOLD = 1
   dtwain_constants.DTWAIN_FONT_COURIERBOLDOBLIQUE = 2
   dtwain_constants.DTWAIN_FONT_COURIEROBLIQUE = 3
   dtwain_constants.DTWAIN_FONT_HELVETICA = 4
   dtwain_constants.DTWAIN_FONT_HELVETICABOLD = 5
   dtwain_constants.DTWAIN_FONT_HELVETICABOLDOBLIQUE = 6
   dtwain_constants.DTWAIN_FONT_HELVETICAOBLIQUE = 7
   dtwain_constants.DTWAIN_FONT_TIMESBOLD = 8
   dtwain_constants.DTWAIN_FONT_TIMESBOLDITALIC = 9
   dtwain_constants.DTWAIN_FONT_TIMESROMAN = 10
   dtwain_constants.DTWAIN_FONT_TIMESITALIC = 11
   dtwain_constants.DTWAIN_FONT_SYMBOL = 12
   dtwain_constants.DTWAIN_FONT_ZAPFDINGBATS = 13
   dtwain_constants.DTWAIN_PDFRENDER_FILL = 0
   dtwain_constants.DTWAIN_PDFRENDER_STROKE = 1
   dtwain_constants.DTWAIN_PDFRENDER_FILLSTROKE = 2
   dtwain_constants.DTWAIN_PDFRENDER_INVISIBLE = 3
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_SCALINGXY = 0
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_FONTHEIGHT = 1
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_WORDSPACING = 2
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_POSITION = 3
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_COLOR = 4
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_STROKEWIDTH = 5
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_DISPLAYFLAGS = 6
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_FONTNAME = 7
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_TEXT = 8
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_RENDERMODE = 9
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_CHARSPACING = 10
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_ROTATIONANGLE = 11
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_LEADING = 12
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_SCALING = 13
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_TEXTLENGTH = 14
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_SKEWANGLES = 15
   dtwain_constants.DTWAIN_PDFTEXTELEMENT_TRANSFORMORDER = 16
   dtwain_constants.DTWAIN_PDFTEXTTRANSFORM_SRK = 0
   dtwain_constants.DTWAIN_PDFTEXTTRANSFORM_SKR = 1
   dtwain_constants.DTWAIN_PDFTEXTTRANSFORM_KSR = 2
   dtwain_constants.DTWAIN_PDFTEXTTRANSFORM_KRS = 3
   dtwain_constants.DTWAIN_PDFTEXTTRANSFORM_RSK = 4
   dtwain_constants.DTWAIN_PDFTEXTTRANSFORM_RKS = 5
   dtwain_constants.DTWAIN_PDFTEXTTRANFORM_LAST = DTWAIN_PDFTEXTTRANSFORM_RKS
   dtwain_constants.DTWAIN_TWDF_ULTRASONIC = 0
   dtwain_constants.DTWAIN_TWDF_BYLENGTH = 1
   dtwain_constants.DTWAIN_TWDF_INFRARED = 2
   dtwain_constants.DTWAIN_TWAS_NONE = 0
   dtwain_constants.DTWAIN_TWAS_AUTO = 1
   dtwain_constants.DTWAIN_TWAS_CURRENT = 2
   dtwain_constants.DTWAIN_TWFR_BOOK = 0
   dtwain_constants.DTWAIN_TWFR_FANFOLD = 1
   dtwain_constants.DTWAIN_CONSTANT_TWPT = 0 
   dtwain_constants.DTWAIN_CONSTANT_TWUN = 1 
   dtwain_constants.DTWAIN_CONSTANT_TWCY = 2 
   dtwain_constants.DTWAIN_CONSTANT_TWAL = 3 
   dtwain_constants.DTWAIN_CONSTANT_TWAS = 4 
   dtwain_constants.DTWAIN_CONSTANT_TWBCOR = 5 
   dtwain_constants.DTWAIN_CONSTANT_TWBD = 6 
   dtwain_constants.DTWAIN_CONSTANT_TWBO = 7 
   dtwain_constants.DTWAIN_CONSTANT_TWBP = 8 
   dtwain_constants.DTWAIN_CONSTANT_TWBR = 9 
   dtwain_constants.DTWAIN_CONSTANT_TWBT = 10
   dtwain_constants.DTWAIN_CONSTANT_TWCP = 11
   dtwain_constants.DTWAIN_CONSTANT_TWCS = 12
   dtwain_constants.DTWAIN_CONSTANT_TWDE = 13
   dtwain_constants.DTWAIN_CONSTANT_TWDR = 14
   dtwain_constants.DTWAIN_CONSTANT_TWDSK = 15
   dtwain_constants.DTWAIN_CONSTANT_TWDX = 16
   dtwain_constants.DTWAIN_CONSTANT_TWFA = 17
   dtwain_constants.DTWAIN_CONSTANT_TWFE = 18
   dtwain_constants.DTWAIN_CONSTANT_TWFF = 19
   dtwain_constants.DTWAIN_CONSTANT_TWFL = 20
   dtwain_constants.DTWAIN_CONSTANT_TWFO = 21
   dtwain_constants.DTWAIN_CONSTANT_TWFP = 22
   dtwain_constants.DTWAIN_CONSTANT_TWFR = 23
   dtwain_constants.DTWAIN_CONSTANT_TWFT = 24
   dtwain_constants.DTWAIN_CONSTANT_TWFY = 25
   dtwain_constants.DTWAIN_CONSTANT_TWIA = 26
   dtwain_constants.DTWAIN_CONSTANT_TWIC = 27
   dtwain_constants.DTWAIN_CONSTANT_TWIF = 28
   dtwain_constants.DTWAIN_CONSTANT_TWIM = 29
   dtwain_constants.DTWAIN_CONSTANT_TWJC = 30
   dtwain_constants.DTWAIN_CONSTANT_TWJQ = 31
   dtwain_constants.DTWAIN_CONSTANT_TWLP = 32
   dtwain_constants.DTWAIN_CONSTANT_TWLS = 33
   dtwain_constants.DTWAIN_CONSTANT_TWMD = 34
   dtwain_constants.DTWAIN_CONSTANT_TWNF = 35
   dtwain_constants.DTWAIN_CONSTANT_TWOR = 36
   dtwain_constants.DTWAIN_CONSTANT_TWOV = 37
   dtwain_constants.DTWAIN_CONSTANT_TWPA = 38
   dtwain_constants.DTWAIN_CONSTANT_TWPC = 39
   dtwain_constants.DTWAIN_CONSTANT_TWPCH = 40
   dtwain_constants.DTWAIN_CONSTANT_TWPF = 41
   dtwain_constants.DTWAIN_CONSTANT_TWPM = 42
   dtwain_constants.DTWAIN_CONSTANT_TWPR = 43
   dtwain_constants.DTWAIN_CONSTANT_TWPF2 = 44
   dtwain_constants.DTWAIN_CONSTANT_TWCT = 45
   dtwain_constants.DTWAIN_CONSTANT_TWPS = 46
   dtwain_constants.DTWAIN_CONSTANT_TWSS = 47
   dtwain_constants.DTWAIN_CONSTANT_TWPH = 48
   dtwain_constants.DTWAIN_CONSTANT_TWCI = 49
   dtwain_constants.DTWAIN_CONSTANT_FONTNAME = 50
   dtwain_constants.DTWAIN_CONSTANT_TWEI = 51
   dtwain_constants.DTWAIN_CONSTANT_TWEJ = 52
   dtwain_constants.DTWAIN_CONSTANT_TWCC = 53
   dtwain_constants.DTWAIN_CONSTANT_TWQC = 54
   dtwain_constants.DTWAIN_CONSTANT_TWRC = 55
   dtwain_constants.DTWAIN_CONSTANT_MSG = 56
   dtwain_constants.DTWAIN_CONSTANT_TWLG = 57
   dtwain_constants.DTWAIN_CONSTANT_DLLINFO = 58
   dtwain_constants.DTWAIN_CONSTANT_DG = 59
   dtwain_constants.DTWAIN_CONSTANT_DAT = 60
   dtwain_constants.DTWAIN_CONSTANT_DF = 61
   dtwain_constants.DTWAIN_CONSTANT_TWTY = 62
   dtwain_constants.DTWAIN_CONSTANT_TWCB = 63
   dtwain_constants.DTWAIN_CONSTANT_TWAF = 64
   dtwain_constants.DTWAIN_CONSTANT_TWFS = 65
   dtwain_constants.DTWAIN_CONSTANT_TWJS = 66
   dtwain_constants.DTWAIN_CONSTANT_TWMR = 67
   dtwain_constants.DTWAIN_CONSTANT_TWDP = 68
   dtwain_constants.DTWAIN_CONSTANT_TWUS = 69
   dtwain_constants.DTWAIN_CONSTANT_TWDF = 70
   dtwain_constants.DTWAIN_CONSTANT_TWFM = 71
   dtwain_constants.DTWAIN_CONSTANT_TWSG = 72
   dtwain_constants.DTWAIN_CONSTANT_DTWAIN_TN = 73
   dtwain_constants.DTWAIN_CONSTANT_TWON = 74
   dtwain_constants.DTWAIN_CONSTANT_TWMF = 75
   dtwain_constants.DTWAIN_CONSTANT_TWSX = 76
   dtwain_constants.DTWAIN_CONSTANT_CAP = 77
   dtwain_constants.DTWAIN_CONSTANT_ICAP = 78
   dtwain_constants.DTWAIN_CONSTANT_DTWAIN_CONT = 79
   dtwain_constants.DTWAIN_CONSTANT_CAPCODE_MAP = 80
   dtwain_constants.DTWAIN_CONSTANT_ACAP = 81
   dtwain_constants.DTWAIN_CONSTANT_CAPCODE_NOMNEMONIC = 82
   dtwain_constants.DTWAIN_CONSTANT_DTWAINCONT_TWAINCONT = 83
   dtwain_constants.DTWAIN_CONSTANT_ERROR_NAMES = 84
   dtwain_constants.DTWAIN_USERRES_START = 20000
   dtwain_constants.DTWAIN_USERRES_MAXSIZE = 8192
   dtwain_constants.DTWAIN_APIHANDLEOK = 1
   dtwain_constants.DTWAIN_TWAINSESSIONOK = 2
   dtwain_constants.DTWAIN_PDF_AES128 = 1
   dtwain_constants.DTWAIN_PDF_AES256 = 2
   dtwain_constants.DTWAIN_FEEDER_TERMINATE = 1
   dtwain_constants.DTWAIN_FEEDER_USEFLATBED = 2
return dtwain_constants
