flathub / org.kde.okular

https://flathub.org/apps/details/org.kde.okular
4 stars 12 forks source link

Saving document with resized text creates huge memory footprint #280

Closed krisutofu closed 1 year ago

krisutofu commented 1 year ago

This issue haunts me for a longer time and I'd like to share it with you.

When I browse my PDF and I add an annotation to the slides or form, sometimes the selected font size is too small or large. When I resize the text (same for annotated text inside a box) and save it, it will not only take a long time but the size of the PDF will get huge, more than 100MiB are added when saving! Going from 2 MiB to 103MiB! This is like saving a high-resolution image for every character in the alphabet. This memory waste is added to each affected document.

There are significant problems

If the issue cannot be fixed, there are some intermediate but weak solutions:

Version: Flathub, installed via Software Center on Ubuntu 20.04.3 LTS.

travier commented 1 year ago

This looks like non-Flatpak specific issues that should be raised as a bug at https://bugs.kde.org/enter_bug.cgi?format=guided&product=okular

krisutofu commented 1 year ago

This looks like non-Flatpak specific issues that should be raised as a bug at https://bugs.kde.org/enter_bug.cgi?format=guided&product=okular

Oh, I am sorry. Thanks.

travier commented 1 year ago

Please link the bug here when you do. Thanks.

krisutofu commented 1 year ago

Bug report