[okular] [Bug 442280] Okular does not take /UserUnit into account (page size incorrect for certain files)

Manuel Geißer bugzilla_noreply at kde.org
Sat Sep 11 11:35:31 BST 2021


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

--- Comment #15 from Manuel Geißer <geisserml at gmail.com> ---
>From the referenced code we can see that Okular uses the
Poppler::Page::pageSizeF() function to obtain the page size:
https://poppler.freedesktop.org/api/qt5/classPoppler_1_1Page.html#a598c287971839a113552176fc387ab30
This function is based on CropBox and returns points.

What about the following solution:
- the pageSize() and pageSizeF() functions should be changed to take /UserUnit
into account, as the docs suggest the returned value is always given in 1/72in
units
- Additionally there should be some way to obtain the /UserUnit value with
poppler. I couldn't find any such option in the documentation, though I only
skimmed it.

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


More information about the Okular-devel mailing list