From a2c5922327ccba4fb61891432f0f05c775110afb Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 4 Jun 2023 13:38:03 +0200 Subject: specify pdf output format (#2341) --- electron/src/main/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'electron') diff --git a/electron/src/main/index.js b/electron/src/main/index.js index 546580ea..356e50fb 100644 --- a/electron/src/main/index.js +++ b/electron/src/main/index.js @@ -68,6 +68,7 @@ function createWindow() { const saveOpt = { title: "Save PDF", defaultPath: "Inkstitch.pdf", + filters: [{ name: 'PDF', extensions: ['pdf'] }], bookmark: "true", } win.webContents.printToPDF({}).then(pageSize => { -- cgit v1.2.3