Implement native print dialog for PDF export

- Replaced jsPDF client-side generation with Tauri's native print dialog
- Created PrintView component that renders note content in a print-optimized layout
- Added print-export window capability with webview creation and print permissions
- Implemented event-based communication between main window and print window
- Moved shared print/export utilities to printExport.ts (title extraction, filename sanitization)
- Changed export button icon from download
This commit is contained in:
drelich
2026-04-05 21:30:31 +02:00
parent f5b448808d
commit 42eec85826
5 changed files with 499 additions and 156 deletions

View File

@@ -2,9 +2,11 @@
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"windows": ["main", "print-export-*"],
"permissions": [
"core:default",
"core:webview:allow-create-webview-window",
"core:webview:allow-print",
"opener:default",
"http:default",
{