I regularly need to redact certain documents from 2 different sources. For each source, the areas for redaction are the same. One source has 2 areas that need redaction and the other source has 4 areas that need to be redacted on each page, anywhere from 9-10 pages per document. What I am trying to do is automate this process as it takes a lot of time to do this manually all the time. I am familiar with creating actions in Adobe so my thought is to create an action that can be applied to batches of documents from each source. Currently the action deletes a page (also part of the process) then I have "execute a javascript” then remove hidden information. The part I need help with is the "execute a javascript" part.
I have looked around some and found that a drawing markup tool rectangle has default coordinates or rotated coordinates. I do not need to have anything to do with the rotated coordinate conversions. In order to find the default X/Y coordinates of the four corners of a drawing markup rectangle I can use this script successfully:
"this.getAnnots()[0].rect”
this allows me to draw a box around the areas that I want redacted and then get the X/Y coordinates to use in the javascript to tell it which areas I want redacted. Essentially I am looking for a javascript that will allow me to define a set of coordinates for the areas I want to redact(they will always be the same and I will get them using the above script unless otherwise directed) , mark them for redaction and apply the redactions. If the coordinates provided by the above script will work great. If I need to find the quad coordinates i will need separate script or instruction on how to find the quad coordinates for the areas I want redacted. Please help! I am using a rMBP that is about 2 months old and Adobe Acrobat X Pro