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

@@ -1,8 +1,18 @@
import { FileItem, PrefKey, PrefValue } from '@standardnotes/models'
export interface SuperConverterServiceInterface {
isValidSuperString(superString: string): boolean
convertSuperStringToOtherFormat: (
superString: string,
toFormat: 'txt' | 'md' | 'html' | 'json' | 'pdf',
config?: {
embedBehavior?: PrefValue[PrefKey.SuperNoteExportEmbedBehavior]
getFileItem?: (id: string) => FileItem | undefined
getFileBase64?: (id: string) => Promise<string | undefined>
pdf?: {
pageSize?: PrefValue[PrefKey.SuperNoteExportPDFPageSize]
}
},
) => Promise<string>
convertOtherFormatToSuperString: (
otherFormatString: string,