Acrobat Annotation bounding box question, are objects underneath?

Aug 14, 2018

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.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

83

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Acrobat Annotation bounding box question, are objects underneath?

Aug 14, 2018

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.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

84

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 14, 2018 0
Aug 14, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 14, 2018 0
Aug 14, 2018

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 14, 2018 1