PDFedits v1.0.1 Release
All fixed, type-checked, and rebuilt clean. Here's what changed on each point:
- Font family changing on edit — fixed the underlying detection: it now guesses bold/italic in addition to serif/sans/mono (from the font's internal name, e.g. ArialMT-Bold), and applies the right one of 12 standard fonts. It won't reproduce an unusual custom font exactly — no PDF editor at this tier does, since that needs extracting the original font program — but it should stop looking "totally different" for normal bold/italic body text. Documented honestly in the README under "On font matching."
- .pdfedits file not reopening — found the real cause: save/open were using browser-style and , which don't reliably work inside a Tauri webview (especially WebKitGTK on Linux). Switched both to Tauri's native dialog + filesystem plugins, and added the capabilities/default.json permission grant those plugins need (this file was missing — an oversight in the original scaffold that would've blocked file access even after wiring the code).
- Reset button — "Reset edits" in the top bar, clears every edit back to the original PDF, with a confirmation prompt.
- Close PDF — "Close" button next to Open, prompts if you have unsaved edits.
- Properties panel not showing after editing existing text — found it: committing an edit never selected the resulting text element. Fixed — it's now auto-selected right after you finish typing, so the panel (font, bold/italic, color) shows immediately, and you can use it to correct the font guess if needed.
- Erase thickness option — Width and Thickness sliders appear in the top bar while the erase tool is active.
- Erase your own content vs. existing PDF content — the erase tool now checks what's under your click: your own added text/image/signature gets deleted outright; clicking over original PDF content patches it as before.