Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Overlay an annotation on top of a field object

Explorer ,
Oct 25, 2017 Oct 25, 2017

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!

TOPICS
Acrobat SDK and JavaScript , Windows
645
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 27, 2017 Oct 27, 2017

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.

Translate
LEGEND ,
Oct 25, 2017 Oct 25, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 26, 2017 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2017 Oct 27, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2017 Oct 27, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 27, 2017 Oct 27, 2017
LATEST

Thanks for everyone's replies.  I'm marking Test Screen Name's answer as the correct answer since it most clearly says there is no way to reliably ensure how overlapped annotations and form fields are displayed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines