New issue
Advanced search Search tips

Issue 860580 link

Starred by 7 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 13
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

PDF - Cannot hover over some comments to view content

Reported by jor...@kamihq.com, Jul 6

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.42 Safari/537.36

Steps to reproduce the problem:
1.  Open the attached PDF, and attempt to over over the second comment icon on the page (the one further down)

What is the expected behavior?
A popup should show the content of the PDF annotation

What went wrong?
No popup shows up.

Did this work before? N/A 

Chrome version: 68.0.3440.42  Channel: beta
OS Version: OS X 10.12.6
Flash Version: 

I've found that this issue is related to the order the PDF annotations are listed in the /Annots key in the PDF Page. If I list the highlight last, then all the comments can be hovered successfully.  (The 'with workaround' document I attached is identical to the original one, except for changing the order of the annotations in the /Annots array, and hovering works for that document).

It appears to be because the highlight has a /Rect which covers the entire page, which causes the hover for subsequent Comments to not work, even though there is no hover action on the highlight annotation.
 
test-document original.pdf
15.9 KB Download
test-document with workaround.pdf
15.9 KB Download
Components: Internals>Plugins>PDF
Owner: hnakashima@chromium.org
Status: Assigned (was: Unconfirmed)
We have multiple (fixed / outstanding) bugs related to annotation z-order. We should test to make sure the solution we come up with works for all of them.
Labels: OS-Chrome OS-Linux OS-Windows
Wait, I was thinking of the z-order for links and form fields. I don't remember off the top of my head how highlight annotations are handled exactly.
Status: WontFix (was: Assigned)
We cannot ignore highlight annotations for mouse hover purposes since if they have a "Contents" entry, a popup should appear. Why does the rect cover the whole screen anyways?
We generate them with the Rect for the highlight covering the whole screen as it made the annotations easier to generate - though even if we did set the Rect as just the bounding box of the highlight, this would still be an issue as you'd be unable to view the content for comments within the highlight area.

Maybe it could ignore it if the contents entry is empty? I tried generating highlights with no content entry in the dict but that didn't seem to help.

I haven't had issues viewing all the comments in any other PDF reader, the feedback from our users has been mostly from  viewing them in Chrome. 

Cheers

Sign in to add a comment