Exporting to pdf opens file dialog, but fails to generate PDF with following error message in the right bottom corner:
Developer console can’t be opened, but that’s another issue; starting inkdrop from the terminal and reproducing the bug produces less output than the error above.
Environment
Platform: Fedora Linux
Platform version: 35
App Version: 5.4.3
How to reproduce
File -> Export -> As PDF… -> Select location and hit save
Thank you for reporting it.
I found that it happens when using with Embed plugin. Otherwise, it works fine.
The plugin replaces contents like tweets with iframe, which Electron doesn’t allow for security reasons.
So, please try disabling plugins like Embed.
I’ll check if it’s possible to solve by using webview instead.
That’s weird. I tried to reproduce it but couldn’t unless I used the Embed plugin.
Does it happen on every note? Or, do you find anything that would cause the issue?
Electron’s printToPdf API is quite unstable, unfortunately:
I try to keep my app’s Electron up-to-date as possible, and I hope it’ll eventually solve the issue.
Disabled every plugin except for “export print” and created a new note containing only two sentences. It still fails in the same way. In fact, Export --> Print lets me print to file from the OS, but that fails silently.
Wait… It’s not the printToPdf API. Starting inkdrop from the terminal with inkdrop --disable-seccomp-filter-sandbox fixes the issue and lets me both export to PDF and print.