Skip to content

Don't render highlights done in Preview by default #5252

Closed

Description

@mitar

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.

Activity

  1. Snuffleupagus commented on Sep 1, 2014

    @Snuffleupagus
    Collaborator

    Please provide a testcase.

  2. mitar commented on Sep 1, 2014

    @mitar
    ContributorAuthor

    Where do I attach the file?

  3. Snuffleupagus commented on Sep 1, 2014

    @Snuffleupagus
    Collaborator

    Use a file sharing service such as Dropbox, Google Drive, Onedrive or similar and add a link to the file here.

  4. mitar commented on Sep 1, 2014

    @mitar
    ContributorAuthor
  5. yurydelendik commented on Sep 2, 2014

    @yurydelendik
    Contributor

    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.

  6. mitar commented on Sep 2, 2014

    @mitar
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions