Okular slightly stretches some PDFs. Does anyone else experience this?

Example of Unexpected

Using firefox-136.0.1-1.fc41.x86_64 on my CV, I see:

Examples of Expected

…whereas in the undermentioned, I see:

  1. firefox-136.0.1-1.fc41.x86_64

    [1]

  2. google-chrome-canary-136.0.7069.0-1.x86_64

    [2]

That’s what I expect - not what Okular displays. Does this occur to anyone else’s PDFs? I ask because:

  1. If not, can you provide an example, so that I can test it on my Okular installation?

  2. If so, I’ll file a bug, unless anyone has reason to believe that this is expected.


  1. discourse.mozilla.org/t/141403/31 ↩︎

  2. discourse.mozilla.org/t/141403/42 ↩︎

both images show the same width (160px) on my versions for firefox and okular

i would attach the pdf but the site won’t let me.

1 Like

Thanks, @skyfishgoo. Using a digital ruler is a clever idea. They appear to be fairly early in implementation though, probably owing to the XOrg – Wayland switchover. [1] Maybe I’ll wait for the undermentioned before trying to confirm and report this:


  1. linuxquestions.org/questions/programming-9/ideas-for-screen-ruler-on-wayland-4175704648/#post6307645 ↩︎

i believe krule works in plasma 6 wayland, tho i’ve not tried it

1 Like

@skyfishgoo, yeah, KRuler [1] works on Wayland. [2] Thanks! This has allowed me to rudimentarily confirm - I see exactly 446 px in Firefox [3] and Chrome [4] at 100%, but > 450 px in Okular’s [5] equivalent size of 110%:

Examples

  1. google-chrome-canary-136.0.7073.0-1.x86_64

  2. firefox-136.0.1-1.fc41.x86_64

  3. okular-24.12.3-1.fc41.x86_64

    And, yes, it needs to be at 110% in Okular to render equivalently:

Firefox’s [3:1] PDFJS implementation is more pixel-perfect, but it still equates to the same amount of pixels for it and Chrome’s, [4:1] despite Okular [5:1] appearing to delegate to Chromium’s PDFJS implementation for this too, considering it:

  1. …suffers from the same, and because:
  2. I presume it utilises QtWebEngine.

How weird. I’ll estimate that this is a bug.


  1. kruler-24.12.3-1.fc41.x86_64 ↩︎

  2. $Env:XDG_SESSION_TYPE='wayland' ↩︎

  3. firefox-136.0.1-1.fc41.x86_64 ↩︎ ↩︎

  4. google-chrome-canary-136.0.7073.0-1.x86_64 ↩︎ ↩︎

  5. okular-24.12.3-1.fc41.x86_64 ↩︎ ↩︎

You ate it didn’t you.

1 Like

it does look tasty XD