feat: Added "Page size" option when exporting Super notes as PDF

This commit is contained in:
Aman Harwara
2024-01-27 16:04:20 +05:30
parent ff3c45ba35
commit 853fab53ab
10 changed files with 82 additions and 26 deletions

View File

@@ -99,6 +99,12 @@ export const getNoteBlob = async (
}
return await getBase64FromBlob(fileBlob)
},
pdf: {
pageSize: application.getPreference(
PrefKey.SuperNoteExportPDFPageSize,
PrefDefaults[PrefKey.SuperNoteExportPDFPageSize],
),
},
})
const useMDFrontmatter =
format === 'md' &&