summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-06-04 13:38:03 +0200
committerGitHub <noreply@github.com>2023-06-04 13:38:03 +0200
commita2c5922327ccba4fb61891432f0f05c775110afb (patch)
tree4ab722ce476338a165ff851c97588627ef50ca20
parent564944effc5a50bff38302da224a3e035a7aa2e8 (diff)
specify pdf output format (#2341)
-rw-r--r--electron/src/main/index.js1
1 files changed, 1 insertions, 0 deletions
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 => {