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

Joe Breuer bugzilla_noreply at kde.org
Mon Jul 3 09:59:49 BST 2023


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

Joe Breuer <kde at jmbreuer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Joe Breuer <kde at jmbreuer.net> ---
(In reply to Sune Vuorela from comment #4)
> (In reply to Joe Breuer from comment #3)
> > 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.

Ah, that's great to know!

> > > 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.

Ah thanks, I get it and know where to look now!

I've added another example using Okular 23.02.4 (with/against Poppler 23.06.0),
and that noticeably keeps a stable file size also when adding multiple
annotations. It is somewhat smaller than the Okular 22.12.3/Poppler
23.06.0/built against Poppler 23.01.0 sample, the difference seems to be down
to Okular 23 only embedding Noto Sans, not Noto Sans and Noto Sans Regular
both.

So - for my purposes - Poppler 23.06.0 and possibly Okular 23.02.4 are the
required combination for a PDF annotation workflow without... "file size and
performance surprises."

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


More information about the Okular-devel mailing list