export pdf of current document

This commit is contained in:
2026-05-23 03:44:30 +10:00
parent 8a43dc597c
commit 1a2ba335ca
6 changed files with 111 additions and 3 deletions

View File

@@ -118,4 +118,7 @@ contextBridge.exposeInMainWorld('api', {
pickProjectFolder: (): Promise<string | null> =>
ipcRenderer.invoke('config:pickFolder'),
exportPDF: (content: string, fileName: string): Promise<void> =>
ipcRenderer.invoke('export:pdf', content, fileName),
})