export project as PDF

This commit is contained in:
2026-05-23 03:56:04 +10:00
parent 26f4e27642
commit f103d8911f
6 changed files with 102 additions and 3 deletions

View File

@@ -93,6 +93,8 @@ export default function App(): JSX.Element {
const fileName = activeFilePath.split('/').pop()?.replace(/\.md$/, '') ?? 'document'
await window.api.exportPDF(activeFileContent, fileName)
}
} else if (action === 'exportProjectPDF') {
await window.api.exportProjectPDF()
}
})
}, [activeFilePath, isDirty, activeFileContent, fontSize])