修复双面打印

This commit is contained in:
xianyi
2025-12-12 09:24:21 +08:00
parent 3b63370fae
commit b437c3dada

View File

@@ -310,7 +310,7 @@ ipcMain.handle("print-pdf", async (event, pdfDataOrUrl, printOptions = {}) => {
const printOptions_ptp = {
printer: targetPrinterName || undefined,
silent: true, // 静默打印
duplex: duplexMode || false, // 双面打印选项
side: duplexMode ? "duplex" : "simplex",
};
await ptp.print(pdfFilePath, printOptions_ptp);