Bug 437246 - Okular does not render parts of PDF document
Summary: Okular does not render parts of PDF document
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 21.04.1
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-17 12:42 UTC by Egbert Gerber
Modified: 2023-03-20 16:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
sample document (103.77 KB, application/pdf)
2021-05-17 12:42 UTC, Egbert Gerber
Details
Okular (91.35 KB, image/png)
2021-05-17 21:21 UTC, Egbert Gerber
Details
Evince (124.64 KB, image/png)
2021-05-17 21:22 UTC, Egbert Gerber
Details
Fonts (35.13 KB, image/png)
2021-05-17 22:12 UTC, Egbert Gerber
Details
With Nimbus Sans for Helvetica (63.48 KB, image/png)
2021-05-17 22:47 UTC, Egbert Gerber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egbert Gerber 2021-05-17 12:42:56 UTC
Created attachment 138507 [details]
sample document

Okular 21.04.1 Flatpak on Kubuntu focal (20.04.2, kernel 5.12) 64-bit does not render some parts of the attached PDF document.


STEPS TO REPRODUCE
Open attached document in Okular and another PDF viewer, e.g. Evince


OBSERVED RESULT
Evince renders the document properly
Okular is not displaying the bold text and checkboxes


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
also affects Okular 1.10.0 deb on Kubuntu 20.04
Comment 1 Albert Astals Cid 2021-05-17 21:17:22 UTC
Can you attach a screenshot of both okular and evince?
Comment 2 Egbert Gerber 2021-05-17 21:21:53 UTC
Created attachment 138519 [details]
Okular
Comment 3 Egbert Gerber 2021-05-17 21:22:15 UTC
Created attachment 138520 [details]
Evince
Comment 4 Albert Astals Cid 2021-05-17 21:26:43 UTC
Works fine for me, guess there's something wrong in [k]ubuntu.

If your distribution can run flatpaks, can you confirm that using https://flathub.org/apps/details/org.kde.okular works for you?
Comment 5 Egbert Gerber 2021-05-17 21:34:07 UTC
This flatpak version is one of the two Okular versions I tested, it does not work.

The one from the Kubuntu backports PPA (http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/pool/main/o/okular/okular_20.04.0-0ubuntu1~ubuntu20.04~ppa3_amd64.deb, says version 1.10.0 in the About dialog), does not work either.
Comment 6 Albert Astals Cid 2021-05-17 22:08:01 UTC
i see you mentioned that originally, sorry.

That's indeed surprising.

Can you attach a screenshot of file->properties->fonts?
Comment 7 Egbert Gerber 2021-05-17 22:12:19 UTC
Created attachment 138523 [details]
Fonts
Comment 8 Egbert Gerber 2021-05-17 22:14:53 UTC
(In reply to Albert Astals Cid from comment #6)
> i see you mentioned that originally, sorry.

no problem :-)
Comment 9 Albert Astals Cid 2021-05-17 22:21:16 UTC
Yeah, uninstall that tex-gyre stuff, or fix your fontconfig configuration to give /usr/share/fonts/gsfonts/NimbusSans-Regular.otf when asking for an "Helvetica" font.
Comment 10 Egbert Gerber 2021-05-17 22:47:32 UTC
Created attachment 138524 [details]
With Nimbus Sans for Helvetica
Comment 11 Egbert Gerber 2021-05-18 15:05:50 UTC
(In reply to Albert Astals Cid from comment #9)
> Yeah, uninstall that tex-gyre stuff, or fix your fontconfig configuration to
> give /usr/share/fonts/gsfonts/NimbusSans-Regular.otf when asking for an
> "Helvetica" font.

This didn't resolve the issue, please see attachment 138524 [details]
Comment 12 Albert Astals Cid 2021-05-18 21:38:45 UTC
Interesting, is that with flatpak still?
Comment 13 Egbert Gerber 2021-05-18 21:59:54 UTC
(In reply to Albert Astals Cid from comment #12)
> Interesting, is that with flatpak still?

Yes, with Flatpak and deb versions, as before.
Comment 14 Albert Astals Cid 2021-05-18 22:12:25 UTC
Ok, i'm out of ideas what may be wrong on your side that makes it not work :/
Comment 15 Egbert Gerber 2021-05-18 22:20:55 UTC
(In reply to Albert Astals Cid from comment #14)
> Ok, i'm out of ideas what may be wrong on your side that makes it not work :/

Well, same here... Thanks a lot for trying though!
Comment 16 Egbert Gerber 2021-05-22 16:33:42 UTC
It seems the parts not rendered by Okular are not using Helvetica but the embedded subset of DejaVuSans/DejaVuSans-Bold
Comment 17 Egbert Gerber 2023-03-20 16:50:31 UTC
Renders nicely in Okular version 22.12.3 (Kubuntu 22.10, Plasma 5.27.3, KDE Fraeworks 5.104.0, Qt 5.15.6, X11))