Skip to main content
Participating Frequently
October 11, 2017
Question

Overlay an Annotation object on top of a Field object

  • October 11, 2017
  • 1 reply
  • 354 views

Sometimes my pdf documents contain some Field objects of type textbox which are not visible to the user and were used to hide some sensitive text underneath them. In javascript, I will find these Fields  and their coordinates and then create an Annotation object with the same coordinates to highlight position of the Field object to the user. The problem is that when the Annotation object is created, it gets hidden behind the Field object (it is placed behind the Field object). If I delete the Field object or set its hidden prop to "hidden" then I can see my Annotation. How can I see the Annotation without changing the state of my Field object, ie, how can I create it on top of the Field object?

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
October 12, 2017

You'd really be better off redacting the sensitive text rather than putting a field over it. You can redact with white which would remove the text without leaving a black box behind.

Participating Frequently
October 12, 2017

Thank you for your response. Yes, as the next step we will redact the field object, however, before running the script to do that we would like to highlight them first for the user to manually inspect them.