[okular] [Bug 470174] 40 Characters Annotation consuming 20MB

Sune Vuorela bugzilla_noreply at kde.org
Mon Jun 12 08:18:51 BST 2023


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

--- Comment #5 from Sune Vuorela <kde at pusling.com> ---
(In reply to der.wolfgang.amadeus.mozart from comment #4)
> Comment on attachment 159566 [details]
> Annotated File from March 2023 with "normal" storage consumption
> 
> I found a file with a relatively big number of annotations created with
> okular (i don't know the version) in march. The storage consumption is
> "normal" - a few KB. I attached the file, I hope it is helpful.

This is kind of interesting. The main reason the files grows are embdednig
fonts.  In the "normal" storage consumption, font embedding fails and it just
adds "Invalid_font" instead of the requested font.

In your "grows to 2mb", the font is wrongly embedded twice and not at all
optimized for storage. 

With only one copy of noto font (The Okular default), not optimized for
storage, approximately 900 kb is the expected growth.

With poppler 23.06, adding a annotation is expected to grow the document with
5-700 kbytes, and when my upcoming changes hopefully lands in poppler 23.07,
annotations are expected to grow the document with 250-300 kbytes.

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


More information about the Okular-devel mailing list