Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Existing annotation changes position / size if document is rotated and annotation tool in the toolbar is clicked #19424

Open
JKrause13 opened this issue Feb 5, 2025 · 1 comment
Labels

Comments

@JKrause13
Copy link

Attach (recommended) or Link to PDF file

compressed.tracemonkey-pldi-09 (5).pdf

Web browser and its version

Edge Version 132.0.2957.140 (Official build) (64-bit), Chrome Version 132.0.6834.160 (Official Build) (64-bit), Firefox Version 135.0 (64-Bit)

Operating system and its version

Windows 10 Version 22H2

PDF.js version

4.10.38

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open the attached document OR open demo document, add annotations, save and open saved document.
  2. Rotate clockwise 90 Degrees.
  3. Click on any annotation tool in the toolbar.

What is the expected behavior?

Annotations' positions and size do not change (relative to the page) when the document is rotated and the annotation tools in the toolbar are clicked.

What went wrong?

The annotations will change position / size (most obvious with the highlight annotation).

Image

Link to a viewer

No response

Additional context

Can also be reproduced without rotating the page if document is in landscape format.

@calixteman
Copy link
Contributor

It seems that we don't apply the right transform in the svg layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants