Bug 431687 - Okular rotates text boxes created by other PDF readers
Summary: Okular rotates text boxes created by other PDF readers
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-16 12:35 UTC by David
Modified: 2021-06-16 12:15 UTC (History)
4 users (show)

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


Attachments
Text box before as appears before (167.87 KB, image/png)
2021-01-16 12:35 UTC, David
Details
Text box before as appears after clicking and opening it (171.81 KB, image/png)
2021-01-16 12:35 UTC, David
Details
sample file (318.66 KB, application/pdf)
2021-01-16 12:39 UTC, David
Details
Demo (3 attempts) (1.41 MB, video/x-matroska)
2021-01-16 13:32 UTC, David
Details
Original Not rotated (28.51 KB, application/pdf)
2021-06-16 12:12 UTC, Martin
Details
RotatedAndSaved (29.28 KB, application/pdf)
2021-06-16 12:13 UTC, Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-01-16 12:35:09 UTC
Created attachment 134926 [details]
Text box before as appears before

SUMMARY
Okular fails to handle text boxes created by other readers.

STEPS TO REPRODUCE
1. Create some text box annotations in Adobe Reader
2. Load document with Okular
3. 

OBSERVED RESULT
Text box is initially displayed correctly. As soon as clicked though, text is rotated 90° clockwise and there's no way to get it back except discarding changes and reload the document

EXPECTED RESULT
text boxes created by okular behave correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.10.7-200.fc33.x86_64
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.12.5

ADDITIONAL INFORMATION
Please check the attached screenshots for more clarity
Comment 1 David 2021-01-16 12:35:35 UTC
Created attachment 134927 [details]
Text box before as appears after clicking and opening it
Comment 2 Yuri Chornoivan 2021-01-16 12:37:45 UTC
It would be much more helpful to have the file than screenshots.

Just my 2 cents.
Comment 3 David 2021-01-16 12:39:59 UTC
Created attachment 134928 [details]
sample file
Comment 4 David 2021-01-16 12:41:37 UTC
(In reply to Yuri Chornoivan from comment #2)
> It would be much more helpful to have the file than screenshots.

here you are. keep it confidential if you can, please.
Comment 5 Yuri Chornoivan 2021-01-16 12:49:55 UTC
For the record,

1. The textbox is on page 13.
2. I cannot reproduce the bug with Okular 1.11.70/Poppler 20.12.0.
3. The file is not confidential now. We should contact our admins to remove it from the public view.
Comment 6 David 2021-01-16 13:27:14 UTC
(In reply to Yuri Chornoivan from comment #5)
> For the record,
> 
> 1. The textbox is on page 13.
> 2. I cannot reproduce the bug with Okular 1.11.70/Poppler 20.12.0.

I've just remember sometimes it's necessary to also modify the content of the box to trigger the issue. Sometimes just opening it is enough.
I'm still able to reproduce it 100% times (tried 20 right now), poppler 0.90.0

> 3. The file is not confidential now. We should contact our admins to remove
> it from the public view.

It's not necessary. Maybe I've sounded too peremptory, I was just asking you to restrict file usage to this bug (no reuse, spreading etc.)
Comment 7 David 2021-01-16 13:32:52 UTC
Created attachment 134929 [details]
Demo (3 attempts)

You can see the aforementioned behaviour. These 3 times it required me to also modify the textbox, but I can confirm sometimes it's enough to just double click on it.
Comment 8 Albert Astals Cid 2021-01-16 23:12:36 UTC
Personally i need to move it after editing, most probably not an Okular but a poppler bug, but needs someone with time to investigate
Comment 9 Martin 2021-06-16 12:12:31 UTC
Created attachment 139386 [details]
Original Not rotated

Original document not rotated. When placing a Note the orientation is correct
Comment 10 Martin 2021-06-16 12:13:05 UTC
Created attachment 139387 [details]
RotatedAndSaved
Comment 11 Martin 2021-06-16 12:15:26 UTC
It is also possible to reproduce using only Okular. When having a pdf (see Attachment "Original Not rotated") and rotating it and saving afterwards. When reopening the pdf it is still rotated. Now create a new note and then the note is rotated as the original rotation (see Attachment "RotatedAndSaved").