2.8.0-beta-2

This commit is contained in:
zsviczian
2025-01-19 15:56:39 +01:00
parent b18637f7d0
commit 4209774b4e
9 changed files with 126 additions and 85 deletions

View File

@@ -10,6 +10,7 @@ export interface PDFExportSettings {
customPaperColor: string;
alignment: PDFPageAlignment;
margin: PDFPageMarginString;
exportDPI: number;
}
export class PDFExportSettingsComponent {
@@ -55,6 +56,23 @@ export class PDFExportSettingsComponent {
})
);
new Setting(this.contentEl)
.setName(t("EXPORTDIALOG_PDF_DPI"))
.addDropdown(dropdown =>
dropdown
.addOptions({
"150": "150",
"300": "300",
"600": "600",
"1200": "1200"
})
.setValue(`${this.settings.exportDPI}`)
.onChange(value => {
this.settings.exportDPI = parseInt(value);
this.update();
})
);
new Setting(this.contentEl)
.setName(t("EXPORTDIALOG_PDF_FIT_TO_PAGE"))
.addDropdown(dropdown =>