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

Manuel Geißer bugzilla_noreply at kde.org
Fri Sep 10 21:15:45 BST 2021


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

--- Comment #5 from Manuel Geißer <geisserml at gmail.com> ---
Created attachment 141455
  --> https://bugs.kde.org/attachment.cgi?id=141455&action=edit
Proportions pdf

For you to confirm the UserUnit is set on the first page of the document in the
screenshot, but not on the other pages.

```python3
>>> from tests_pdfnodegraph.pathtools import TestOutput
>>> pdf = pikepdf.open(join(TestOutput,'out_14.pdf'))
>>> page = pdf.pages[0]
>>> page.UserUnit
Decimal('10.0')
>>> page_2 = pdf.pages[1]
>>> page_2.UserUnit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/manuel/.local/lib/python3.8/site-packages/pikepdf/_methods.py",
line 1143, in __getattr__
    return getattr(self.obj, name)
AttributeError: /UserUnit
>>> 
```

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


More information about the Okular-devel mailing list