[okular] [Bug 459209] Using tab character in form increases file size by several MB

Florine W. Dekker bugzilla_noreply at kde.org
Sun Sep 18 21:48:11 BST 2022


https://bugs.kde.org/show_bug.cgi?id=459209

--- Comment #3 from Florine W. Dekker <florine at fwdekker.com> ---
(In reply to Albert Astals Cid from comment #2)
> I know this is unfortunate, but it is how it is, you're adding text to the
> document, we need a font that supports that character, so we add that font
> to the file.
> 
> Could it be done better, yes? But we sadly don't have the people to code
> that better way to do it at this time.
> 
> FWIW this is mostly something that needs improvement in poppler, not in
> Okular itself (though some stuff may be needed to change in okular too)

Interesting, and indeed unfortunate.

However, in that case I would expect the growth to occur only once, but in some
additional experiments I see that once the tab character has been added, each
time the form is edited it grows by a megabyte or so. In the past, I've had a
PDF grow to a whopping 500MB because I compulsively save the form after every
sentence I write.

Here's how to reproduce the ever-growing PDF:
1. Open the PDF that is attached to this issue.
2. Select "Show Forms".
3. Add a tab character in the input box to the right of "In welk land heeft u
kosten gemaakt?".
4. Add a tab character in the input box to the right of "Wat is er gebeurd en
welke medische zorg kreeg u?".
5. Save the PDF file (using Ctrl+S), and check the file size. It should have
grown by a few MBs.
6. Select the input box to the right of "In welk land heeft u kosten gemaakt?".
7. Add "aaa" after the tab character.
8. Save the PDF file (using Ctrl+S), and check the file size. It should have
grown by a MB or so.
9. Repeat steps 7 and 8 indefinitely.

Interestingly, this bug requires the tab to have been added to two input boxes.
If it's done to only one, the file doesn't keep growing in size.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list