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
..
2026-09-15 22:03:22 +08:00
2026-09-16 17:47:34 +08:00
2026-03-29 13:26:23 +08:00
2026-07-28 21:55:56 +08:00
2026-03-29 13:26:23 +08:00
2026-11-25 00:41:24 +08:00
2026-11-25 00:41:24 +08:00
2026-07-28 21:55:56 +08:00