Redacting multiple words across PDF lines/pages with VBA & acrobat javascript

  • Hi, I have managed to create a bounding rectangle around a string of selected words in a PDF document using VBA and the JavaScript object. However, I use only 1 set of rectangle coordinates (getboundingrect) around the highlighted words. As long as these selected words are on the same line, no problem. However, if the selected words fall on 2 lines, the (single) bounding rectangle used with annot changes the bounding rectangle to encompass 2 whole lines.


    Jso has no proper selection object. Would I need to find the coordinates of each selected word just to check if they are on the same line and then give commands for more than one bounding rectangle? Or is there another way to do this? Would appreciate the vba code


    Thanks in advance

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!