Copy link to clipboard
Copied
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?
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.
Copy link to clipboard
Copied
You can create a plugin (written in C/C++) for this.
Copy link to clipboard
Copied
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.