增加新配置:跳过空白页边缘宽度

This commit is contained in:
yangjiaxuan 2024-06-29 18:44:43 +08:00
parent 4069a292d8
commit 08471810d1
10 changed files with 185 additions and 8 deletions

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G100-G200", "device_type": "G100-G200",
"button_count": 0, "button_count": 0,
"option_count": 66 "option_count": 67
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -531,6 +531,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"enable": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G139-G239", "device_type": "G139-G239",
"button_count": 0, "button_count": 0,
"option_count": 79 "option_count": 80
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -548,6 +548,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G300", "device_type": "G300",
"button_count": 0, "button_count": 0,
"option_count": 69 "option_count": 70
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -548,6 +548,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G302", "device_type": "G302",
"button_count": 0, "button_count": 0,
"option_count": 64 "option_count": 65
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -531,6 +531,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G300", "device_type": "G300",
"button_count": 5, "button_count": 5,
"option_count": 73 "option_count": 74
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -548,6 +548,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G400", "device_type": "G400",
"button_count": 0, "button_count": 0,
"option_count": 67 "option_count": 68
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -531,6 +531,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G402", "device_type": "G402",
"button_count": 0, "button_count": 0,
"option_count": 64 "option_count": 65
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -531,6 +531,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -2,7 +2,7 @@
"global": { "global": {
"device_type": "G439", "device_type": "G439",
"button_count": 0, "button_count": 0,
"option_count": 73 "option_count": 74
}, },
"restore": { "restore": {
"cat": "base", "cat": "base",
@ -548,6 +548,28 @@
}, },
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"] "depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
}, },
"blank-edge-width": {
"cat": "base",
"readonly": false,
"affect": 0,
"group": "base",
"visible": true,
"field": "Common",
"pos": 0,
"unit": "None",
"title": " 跳过空白页边缘宽度mm",
"desc": "数值越大,越容易忽略纸张边缘",
"type": "int",
"cur": 20,
"default": 20,
"size": 4,
"range": {
"min": 1,
"max": 30,
"step": 1
},
"depend_or": ["page==跳过空白页(发票纸)", "==跳过空白页(通用)", "discardblank==true"]
},
"fold-type": { "fold-type": {
"cat": "base", "cat": "base",
"readonly": false, "readonly": false,

View File

@ -5957,6 +5957,7 @@ struct
, {SANE_STD_OPT_NAME_OUT_BOUNDARY , OPTION_TITLE_BJJC} , {SANE_STD_OPT_NAME_OUT_BOUNDARY , OPTION_TITLE_BJJC}
, {SANE_STD_OPT_NAME_SETTOKEN , OPTION_TITLE_SDLP} , {SANE_STD_OPT_NAME_SETTOKEN , OPTION_TITLE_SDLP}
, {SANE_STD_OPT_NAME_MAXSIZE_COLLECT_HEIGHT ,OPTION_TITLE_ZDFMCJGD} , {SANE_STD_OPT_NAME_MAXSIZE_COLLECT_HEIGHT ,OPTION_TITLE_ZDFMCJGD}
, {SANE_STD_OPT_NAME_BLANK_EDGE_WIDTH , OPTION_TITLE_TGKBYBYKD}
}, },
g_discard[] = { {SANE_STD_OPT_NAME_REVERSE_01 , "\351\273\221\347\231\275\345\233\276\345\203\217\345\217\215\350\211\262\350\276\223\345\207\272\357\274\210\346\255\243\345\270\270\351\242\234\350\211\262\344\270\272\357\274\2320-\351\273\221\350\211\262\357\274\2331-\347\231\275\350\211\262\357\274\211"} // 黑白图像反色输出正常颜色为0-黑色1-白色) g_discard[] = { {SANE_STD_OPT_NAME_REVERSE_01 , "\351\273\221\347\231\275\345\233\276\345\203\217\345\217\215\350\211\262\350\276\223\345\207\272\357\274\210\346\255\243\345\270\270\351\242\234\350\211\262\344\270\272\357\274\2320-\351\273\221\350\211\262\357\274\2331-\347\231\275\350\211\262\357\274\211"} // 黑白图像反色输出正常颜色为0-黑色1-白色)
, {SANE_STD_OPT_NAME_FILTER , "\347\201\260\345\272\246\346\210\226\351\273\221\347\231\275\345\233\276\345\203\217 - \351\231\244\350\211\262"} // 灰度或黑白图像 - 除色 , {SANE_STD_OPT_NAME_FILTER , "\347\201\260\345\272\246\346\210\226\351\273\221\347\231\275\345\233\276\345\203\217 - \351\231\244\350\211\262"} // 灰度或黑白图像 - 除色

Binary file not shown.