✨ export project as PDF
This commit is contained in:
@@ -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])
|
||||
|
||||
1
src/renderer/types/global.d.ts
vendored
1
src/renderer/types/global.d.ts
vendored
@@ -38,6 +38,7 @@ declare global {
|
||||
writeConfig: (updates: Partial<GlobalConfig>) => Promise<void>
|
||||
pickProjectFolder: () => Promise<string | null>
|
||||
exportPDF: (content: string, fileName: string) => Promise<void>
|
||||
exportProjectPDF: () => Promise<void>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user