Skip to content

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

Closed
@JKrause13

Description

@JKrause13

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions