diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-06-04 13:38:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-04 13:38:03 +0200 |
| commit | a2c5922327ccba4fb61891432f0f05c775110afb (patch) | |
| tree | 4ab722ce476338a165ff851c97588627ef50ca20 | |
| parent | 564944effc5a50bff38302da224a3e035a7aa2e8 (diff) | |
specify pdf output format (#2341)
| -rw-r--r-- | electron/src/main/index.js | 1 |
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 => { |
