Skip to content

comments on PDF files in landscape orientation are rotated and in wrong position #7631

@yaofeng365

Description

@yaofeng365

There is a problem in pdf.js when displaying comments on documents in landscape orientation. The comment icon and popup text are shown as rotated 90 degree. Documents in portrait orientation don't have this problem.

Link to PDF file (or attach file here):
Please see the attached pdf_landscape_adobe.pdf
pdf_landscape_adobe.pdf

Configuration:

  • Web browser and its version: Google Chrome Version 52.0.2743.116 m
  • Operating system and its version: Windows 7 Professional Service Pack 1
  • PDF.js version: 1.4.20
  • Is an extension: No.

Steps to reproduce the problem:

  1. Create a pdf document in landscape orientation
  2. Added a comment and an annotation (for comparation purpose) with Adobe Reader. Both comment and annotation look good in Adobe Reader. See the attached pdf_landscape_adobe.pdf.
  3. Go to pdf.js demo site http://mozilla.github.io/pdf.js/web/viewer.html and open the above pdf file.
  4. You can see the annotation is displayed correctly, but the comment has problems.
  • The icon is rotated 90 degree.
  • The popup text (once you click on the icon) is rotated 90 degree.
  • The popup text is not in the right position.

What is the expected behavior? (add screenshot)
The comment should be displayed correctly as annotation. See screenshot
pdf_landscape_expected
pdf_landscape_bug

pdf_landscape_expected.png.

What went wrong? (add screenshot)
The following problems were observed. See screenshot pdf_landscape_bug.png.

  • The icon is rotated 90 degree.
  • The popup text (once you click on the icon) is rotated 90 degree.
  • The popup text is not in the right position.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
http://mozilla.github.io/pdf.js/web/viewer.html

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions