You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't render highlights done in Preview by default #5252
If I do a highlight in Mac OS X Preview and open the PDF in PDF.js, highlight is rendered as static yellow background and there is no way to turn it on or off. It is not interactive like the rest of annotations and there is no button to hide those highlights.
I'm not clear on what is the expected behavior -- Mac OSX Preview shows them is the same manner, and there is no easy on/off for those annotations in any other PDF viewer.
In Preview you can open an inspector and interact with the highlight (like removing them). In PDF.js they are static and you cannot do anything with them. I would suggest that in API there is added some function which returns them, same as annotations (or maybe they could be part of what annotations API call returns, as a special type). And then you have a layer which renders them, or not.
Or other question: how to detect them with current API, even if I would like to use my own viewer and build this functionality without being included in PDF.js official viewer.
Activity
Snuffleupagus commentedon Sep 1, 2014
Please provide a testcase.
mitar commentedon Sep 1, 2014
Where do I attach the file?
Snuffleupagus commentedon Sep 1, 2014
Use a file sharing service such as Dropbox, Google Drive, Onedrive or similar and add a link to the file here.
mitar commentedon Sep 1, 2014
Here it is: https://www.dropbox.com/s/eezkwqg7rb75ns1/compressed.tracemonkey-pldi-09.pdf?dl=0
mitar commentedon Sep 1, 2014
cc @HeXXiiiZ
yurydelendik commentedon Sep 2, 2014
I'm not clear on what is the expected behavior -- Mac OSX Preview shows them is the same manner, and there is no easy on/off for those annotations in any other PDF viewer.
mitar commentedon Sep 2, 2014
In Preview you can open an inspector and interact with the highlight (like removing them). In PDF.js they are static and you cannot do anything with them. I would suggest that in API there is added some function which returns them, same as annotations (or maybe they could be part of what annotations API call returns, as a special type). And then you have a layer which renders them, or not.
Or other question: how to detect them with current API, even if I would like to use my own viewer and build this functionality without being included in PDF.js official viewer.