Skip to main content
Inspiring
October 26, 2017
Answered

Overlay an annotation on top of a field object

  • October 26, 2017
  • 1 reply
  • 788 views

Hi,

First, let me apologize because this question is basically a duplicate of question 9881727, which was asked a couple of weeks ago. However, it was never answered.

I'm using Acrobat Javascript and creating both annotations and field objects, e.g. buttons and text boxes. The field objects always obscure the annotations.  Stated another way, the field objects are on top of the annotations.

Question: Is there any way to make annotations visible whenever they overlap field objects?  Perhaps some programmable Z-order property for either annotations or field objects?

Note that I don't need alternative programming suggestions in order to avoid this issue, I just need to know if an annotations can ever be made visible when they overlap a field object?  Note that my field objects are NOT transparent, i.e. they are solidly colored.

Thanks for your help!

This topic has been closed for replies.
Correct answer Test Screen Name

Z order is not a concept for annotations and form fields. Results are unpredictable, change between software and versions. If you want consistent display you must eliminate overlap.

1 reply

Inspiring
October 26, 2017

There is no guarantee, especially if the object (annotation/field) can receive the focus. Also, different viewers may (and do) behave differently. In general though, when an annotation receives the focus, it will appear to be on top of any others.

DHeadrickAuthor
Inspiring
October 26, 2017

Thanks for your reply.

When you say "In general though, when an annotation receives the focus, it will appear on top of any others", are you talking about when I'm EDITING my PDF?

I'm not concerned about editing my PDF, I'm concerned about what customers will see when they open the PDF.  My document will be secured and the customer cannot edit it.  Is there any way for me to specify that a certain annotation will appear on top of a certain field object?  Or will annotations always be obscured by field objects?

Also, you indicated "different viewers may (and do) behave differently".  I presume, by "viewers", you mean programs like Adobe Reader.  In my case, the use of Adobe Reader and only Adobe Reader will be required.

Thanks for your further thoughts.

Inspiring
October 27, 2017

I was talking about when someone uses the document. I was mostly thinking about fields, as opposed to others types of annotations.