printServer/config.packaged.json
liufumingren ee054f039a feat(printer): PDF 打印支持按驱动纸张自动选纸
- 新增 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>
2026-11-25 00:41:24 +08:00

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": ""
}