双面打印

This commit is contained in:
xianyi
2025-12-08 14:48:38 +08:00
parent 0b6fdcf95f
commit 2ba570a504
4 changed files with 67 additions and 4 deletions

2
src/electron.d.ts vendored
View File

@@ -14,7 +14,7 @@ interface ElectronAPI {
) => Promise<{ success: boolean; data?: string; error?: string }>;
printPdf: (
pdfUrl: string,
options?: { printerName?: string }
options?: { printerName?: string; duplex?: boolean }
) => Promise<{ success: boolean; error?: string }>;
getPrinters: () => Promise<{
success: boolean;