-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
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:
- Create a pdf document in landscape orientation
- 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.
- Go to pdf.js demo site http://mozilla.github.io/pdf.js/web/viewer.html and open the above pdf file.
- 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.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