修复双面打印
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user