0

I have developed a simple but effective tool to automate counting the instances of a specific statement in "sticky note" comment boxes. I'm using this fir marking student exam scripts. Users are using Ctrl+C,Ctrl+C to copy preexisting comments. However in some instances the comments paste directly on top of a preexisting comment. The script counts all but the user has not intended there to be a duplicate. I'm looking to find a way to access the coordinates of the comment boxes on the PDF so I can check for coordinate duplicates. Thanks in advance.

3
  • "but it's the getting hold of the "Rect" entries that I'm unable to do." Please elaborate on what you tried. What Languages and/or frameworks are you looking to use. What PDF SDK/libraries have you tried. stackoverflow.com/help/how-to-ask Commented Jun 14, 2020 at 16:11
  • Are you using a runtime viewer like Acrobat or do you need to do this using a library? Commented Jun 15, 2020 at 14:42
  • I'm self taught VBA, so, I have no experience of coding directly with PDF. As I mentioned, I am unable to find coordinates manually through Adobe. Commented Jun 16, 2020 at 8:29

1 Answer 1

0

coordinates of the comment boxes

All comments are Annotations, and Annotations are required to have a "Rect" entry that defines the coordinates/location of the annotation.

Rect is an array of 4 numbers, defining two opposite corners of the axis aligned bounding box (AABB). The canonical form is to define the bottom left first, and the top right second, but you should just assume it is two opposite corners.

Sign up to request clarification or add additional context in comments.

1 Comment

I thought there must be that data, but it's the getting hold of the "Rect" entries that I'm unable to do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.