From d4ac6a431a19de83ff0071a165c3dca694c7b1ec Mon Sep 17 00:00:00 2001 From: xianyi Date: Thu, 11 Dec 2025 17:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=8C=E9=9D=A2=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/main.js b/electron/main.js index 3a64fe1..e8f005d 100644 --- a/electron/main.js +++ b/electron/main.js @@ -303,7 +303,7 @@ ipcMain.handle("print-pdf", async (event, pdfDataOrUrl, printOptions = {}) => { const duplexMode = printOptions?.duplex; // pdf-to-printer 使用 side 选项,而不是 duplex // side 可选值: "simplex" | "duplex" | "duplexshort" | "duplexlong" - const sideOption = duplexMode ? "duplex" : "simplex"; + const sideOption = duplexMode ? "duplexlong" : "simplex"; log.info( `准备打印PDF: ${pdfFilePath}, 打印机: ${targetPrinterName || "默认打印机" }, 双面打印: ${duplexMode ? "是" : "否"}`