feat(pdf): support landscape mode at note level

This commit is contained in:
Elian Doran
2025-02-01 00:28:48 +02:00
parent 658ce103fc
commit f3a3906db7
2 changed files with 6 additions and 2 deletions

View File

@@ -299,7 +299,8 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
const { ipcRenderer } = utils.dynamicRequire("electron");
ipcRenderer.send("export-as-pdf", {
title: this.note.title
title: this.note.title,
landscape: this.note.hasAttribute("label", "printLandscape")
});
}