PDF - Cannot hover over some comments to view content
Reported by
jor...@kamihq.com,
Jul 6
|
||||
Issue descriptionUserAgent: 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.
,
Jul 6
,
Jul 6
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.
,
Jul 6
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.
,
Jul 13
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?
,
Jul 13
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 |
||||
Comment 1 by dtapu...@chromium.org
, Jul 6