fix: dark mode export PDF leaves margin and notification (#2978)

This commit is contained in:
xiaodong zuo authored and GitHub committed 2023-07-03 12:11:07 +00:00
1 parent bacd00655d
commit 3d0a907b49
4 files changed
+31 -16

No files matched your search

+7
View File
@@ -39,6 +39,13 @@ export async function savePDFFileAs(
await BrowserWindow.getFocusedWindow()
?.webContents.printToPDF({
margins: {
marginType: 'custom',
top: 0,
bottom: 0,
left: 0,
right: 0,
},
pageSize: 'A4',
printBackground: true,
landscape: false,