How to access an object from Acrobat pro XI javascript
I have a pdf file which is a scanned image with hand writings on it. It hides and covers some numerical text - it was someone's idea to hide some sensitive information except they did not use the Redaction feature properly. Instead, the numerical text is being covered up by a white strip that resembles an annotation object with white background, but it is not an annotation, layer, field, or an image. The following methods all return 0 or null:
this.numFields
this.getAnnots(0);
this.getOCGs(0);
and when I extract page images that white strip will not be extracted as an image.
I need to access this covering object from javascript and get its rect or quads coordinates in order to overlay some colored annotation object on top of it and make it visible to the user.
In order to "see" the white object, from Edit menu I select Edit Text and Images. Then, I select the page image and resize it by dragging it from upper left corner towards lower right and then I see a number appear in the middle of the form as the image is resized and the white object stays put in its position. The number is hidden by what appears as a while colored annotation, but it is not an annotation.
I tried the "Browse Internal PDF Structure" in preflight but could not make much sense out of it.
Can someone guide me on how can I detect and figure out what this strange and weird object might be and how can I get its rect coordinates.
Any help is much appreciated.