Skip to main content
nathanb97287018
Participant
August 14, 2018
Answered

Acrobat Annotation bounding box question, are objects underneath?

  • August 14, 2018
  • 1 reply
  • 507 views

I am trying to figure out if it is possible to detect if any other objects within the document have overlapping bounding boxes. not just annotation objects, which i can get the bounding box of, but lines, text etc, from the original document.

My goal would be to detect and stamp in a region that was unused that fit the stamps bounding box, and thus not overlapping anything. Is this something the OLE or Javascript tools can accomplish?

This topic has been closed for replies.
Correct answer Joel Geraci

What Bernd said but also, you don't want to bother looking for overlapping bounding boxes. Lots of applications do stupid stuff that will yield false positives. Instead, rasterize the page and then use the image to detect areas of white pixels that you can use to determine the location of your stamp.

1 reply

Bernd Alheit
Community Expert
Community Expert
August 14, 2018

You can create a plugin (written in C/C++) for this.

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
August 14, 2018

What Bernd said but also, you don't want to bother looking for overlapping bounding boxes. Lots of applications do stupid stuff that will yield false positives. Instead, rasterize the page and then use the image to detect areas of white pixels that you can use to determine the location of your stamp.