highkite / pdfAnnotate

Javascript library for creating annotations in PDF documents
MIT License
556 stars 90 forks source link

Add highlight annotation without comment #56

Open awolfson1987 opened 2 years ago

awolfson1987 commented 2 years ago

Hello,

Is there a way to add an annotation but without showing it under the comments panel in Adobe Reader?

I want to add this:

image

But without adding this:

image

Any help would be appreciated.

highkite commented 2 years ago

Hello @awolfson1987,

I am (pretty) sure that this is not possible, since this is completely in the hand of the PDF viewer. Afaik, there are no configuration options to control this behavior of viewers. There is definitely nothing about that in the specification.

What you could try is using square or polygon annotations with transparency to imitate the look of highlight annotations and maybe Adobe reader does not show these annotations. But this is just guessing.