Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now