feat(pdf): describe the attributes & fix conflict in name

This commit is contained in:
Elian Doran
2025-02-01 17:34:36 +02:00
parent 2659bd33e8
commit fa655ea45e
4 changed files with 10 additions and 3 deletions

View File

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