Skip to content

fix(desktop): export PDF via Electron IPC - #4943

Merged
DIYgod merged 1 commit into
devfrom
DIYgod/fix-export-pdf
Apr 2, 2026
Merged

fix(desktop): export PDF via Electron IPC#4943
DIYgod merged 1 commit into
devfrom
DIYgod/fix-export-pdf

Conversation

@DIYgod

@DIYgod DIYgod commented Apr 2, 2026

Copy link
Copy Markdown
Member

Description

Fixes desktop PDF export in Electron, where the command incorrectly used window.print() and triggered the native unsupported-printing dialog.
Routes desktop export through a main-process IPC that opens a save dialog and uses webContents.printToPDF, while keeping browser mode on window.print() and sanitizing the default PDF filename.

PR Type

  • Feature
  • Bugfix
  • Hotfix
  • Other (please describe):

Screenshots (if UI change)

N/A

Demo Video (if new feature)

N/A

Linked Issues

N/A

Additional context

Adds regression coverage for Electron vs browser export paths and filename sanitization.
Verified with pnpm typecheck, pnpm lint:fix, and pnpm test.

Changelog

  • I have updated the changelog/next.md with my changes.

@DIYgod
DIYgod merged commit a9eaae8 into dev Apr 2, 2026
8 checks passed
@DIYgod
DIYgod deleted the DIYgod/fix-export-pdf branch April 2, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant