What type of annotation (or other object) to use?

I would like to take an existing PDF and add translucent rectangles on top of the pages in predetermined places. When the user moves the mouse around the rectangle, he must change color and / or transparency. I must be able to define different colors (including transparency) for both states. Clicking on it performs some actions that I define (for example, going to another page or website).

I understand that this can be done with annotations, but it’s hard for me to figure out which type of annotation is best. They also do not do very well with transparency. Of course, I'm open to using anything other than annotations, if necessary ...

+3
source share
1 answer

1) These should be annotations. If it is clickable-and-does-something, this is an annotation. This may be an annotation on top of some page content, but an annotation should be included.

2) You can set the appearance of the button for arbitrary PDF content, including β€œnormal” and β€œmouse”. Please note that these features are not available through the Acrobat interface, but may be available programmatically from your API of choice at the object level. All appearance dictionaries have 3 different states: "N" ormal, "R" ollover and "D".

Honestly, I have never tried setting the scroll of a form field (or, for that matter), so I'm not sure how well this will work, but Theory sounds.

? . .

/os/anything, .


ICON . PDF . , . , , acrobat gui , - PDF.

/DA , Acroform DR. .

+1

Source: https://habr.com/ru/post/1778743/


All Articles