- 新增 utils/printerPaper.js:读取驱动 PaperSizes(名称/尺寸/DMPAPER id),按打印机缓存 10 分钟 - 按 PDF 首页尺寸匹配纸张:精确 → 能容纳的最小纸 → 装不下时取最大纸并自动改 shrink - 纸张参数优先 paper=<驱动纸名>,纯数字或含逗号时回退 paperkind=<RawKind>;User defined 不参与匹配 - 新增配置 pdfPrint.autoPaper(默认 true),显式 papers/请求参数仍优先 - SumatraPDF-settings.txt 加入 .gitignore(运行期生成) - 版本 1.0.42 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
36 lines
826 B
JSON
36 lines
826 B
JSON
{
|
|
"wsPort": 17301,
|
|
"wsPorts": [17301, 17302, 17303],
|
|
"httpPort": 17311,
|
|
"httpPorts": [17311, 17312, 17313],
|
|
"logLevel": "info",
|
|
"printerDefault": "",
|
|
"maxPrintJobs": 10,
|
|
"pdfPrint": {
|
|
"exePath": "",
|
|
"autoPaper": true,
|
|
"paper": "",
|
|
"papers": {},
|
|
"scale": "noscale",
|
|
"timeoutMs": 60000
|
|
},
|
|
"isService": false,
|
|
"remoteWs": {
|
|
"url": "ws://printer.wms.gztbyc.com/ws",
|
|
"reconnectInterval": 3000
|
|
},
|
|
"hikvision": {
|
|
"downloadDir": "G:/gameauto/recordings",
|
|
"maxStorage": "50GB",
|
|
"circularRecording": true
|
|
},
|
|
"update": {
|
|
"feedUrl": "https://dl.wms.gztbyc.com/printServer/latest.json",
|
|
"downloadBaseUrl": "https://dl.wms.gztbyc.com/printServer"
|
|
},
|
|
"refreshTokenExpireTime": 0,
|
|
"name": "",
|
|
"tokenExpireTime": 0,
|
|
"token": "",
|
|
"refreshToken": ""
|
|
} |