-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
Description
Attach (recommended) or Link to PDF file
Web browser and its version
Chrome Version 138.0.7204.184
Operating system and its version
Windows 11 Pro version 23H2
PDF.js version
5.4.54
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
- Create a pdf that has its pages rotated 90 degrees. I used the qpdf command "qpdf input.pdf --rotate=+90:1-z output.pdf" to do so.
- Open the pdf in the viewer, add a highlight annotation anywhere.
- Save and download the pdf, and reopen it.
- Clicking and unclicking the highlight button cause the highlight annotation to rotate 90 degrees.
What is the expected behavior?
The expected behavior is that the annotation doesn't move when clicking the highlight button:

What went wrong?
Clicking the highlight button causes the highlight annotation to rotate. However, this a purely a visual change, and saving and downloading the pdf shows the right location of the annotation
Link to a viewer
No response
Additional context
No response