[okular] [Bug 471792] Annotations greatly increase PDF file size and massively slow down Okular

Sune Vuorela bugzilla_noreply at kde.org
Mon Jul 3 08:09:14 BST 2023


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

--- Comment #4 from Sune Vuorela <kde at pusling.com> ---
(In reply to Joe Breuer from comment #3)
> (In reply to Sune Vuorela from comment #1)
> > Some versions did embed the same fonts multiple times, and your "big"
> > document contains ~140 copies of noto fonts
> 
> What method/tool do you use to obtain this information?

poppler source package (Often in a binary package like poppler-utils or
poppler-tools) contains pdffonts tool that list all of the fonts in the pdf
file.

> I've added a corresponding sample:
> https://github.com/jmbreuer/heap/tree/main/kde-okular-bug-20230630

That file embeds noto sans and noto sans regular. It seems to have grown with
1.5 mb. For two fonts that's not that much off.

> > With poppler 23.06, adding annotations should grow the document with
> > approximately 600k. With poppler 23.07, it should grow the document with
> > approximately 300 k, assuming noto sans (okular default) is used.
> 
> Is that to be expected "per each annotation", or once per adding annotations
> at all, or per annotation type, ...?

Technically, it is per different font, assuming every font is as big as Noto
Sans and compresses with zlib similar to Noto Sans.

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


More information about the Okular-devel mailing list