Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Overlay an Annotation object on top of a Field object

Community Beginner ,
Oct 11, 2017 Oct 11, 2017

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?

TOPICS
Acrobat SDK and JavaScript , Windows
312
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
Community Expert ,
Oct 12, 2017 Oct 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.

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
Community Beginner ,
Oct 12, 2017 Oct 12, 2017
LATEST

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.

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