How to Bulk Redact the Same Area in Multiple PDFs
Question details
The user needs a method to automate the redaction of a fixed rectangular area across hundreds of PDF documents, regardless of varying text content.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Removing sensitive information located at the exact same physical coordinates across a large batch of PDF files without manual intervention.
- Observed behavior
- Without automation, the user must manually draw redaction boxes on hundreds of files. An automated batch process requires finding page coordinates and applying an Action Wizard script.
Always duplicate your target PDF files into a separate backup folder before running any batch redaction scripts, as applying redactions permanently removes the underlying text and image data.
Automate Fixed-Area Redaction Using Acrobat Action Wizard
Use Adobe Acrobat's Action Wizard and a simple JavaScript command to identify page coordinates and apply redactions across a batch of files.
To redact the same area across multiple PDFs automatically, you first need to determine the exact coordinates of the target area. Once these coordinates are known, you can incorporate them into an Action Wizard process.
Open one of your PDFs in Adobe Acrobat. Use the Comment tool to draw a square or rectangular annotation precisely over the area you want to redact. Keep this shape selected.
With the shape selected, press Ctrl+J (or Cmd+J on Mac) to open the JavaScript Debugger/Console. Type 'selectedAnnots[0].rect' into the console and press Ctrl+Enter (or Enter on the numeric keypad). Write down the four coordinate values that appear.
Go to Tools > Action Wizard > New Action. Under 'Choose tools to add', select 'More Tools' > 'Execute JavaScript' and add it to your action steps. Uncheck the 'Prompt user' box.
Click 'Specify Settings' on the JavaScript step and input a redaction script utilizing your recorded coordinates (e.g., this.addAnnot({type: 'Redact', page: 0, rect: [x1, y1, x2, y2]});). Add a 'Save' step to your action, then run it on your target folder of copied PDF files to apply the redactions in bulk.

Redact Sensitive PDF Information Safely with WPS Office
If writing JavaScript code and configuring Action Wizard feels too complex, WPS Office provides an incredibly intuitive PDF editing suite. You can easily protect sensitive data with straightforward redaction tools designed for everyday users.
- 1. Open Your PDF in WPS Office: Launch WPS Office, select 'PDF', and open the document containing the sensitive information.
- 2. Access the Protect Tab: Navigate to the 'Protect' tab on the top ribbon menu and click on the 'Redact' tool.
- 3. Select the Area: Click and drag your cursor over the text, images, or blank areas you wish to securely conceal.
- 4. Apply Redactions Permanently: Click 'Apply Redactions' to permanently remove the underlying data and save the file safely.

Frequently Asked Questions
Can I redact specific words in multiple PDFs instead of a fixed coordinate?
Yes. Most advanced PDF editors offer a 'Search and Redact' feature. This allows you to search for a specific word, phrase, or pattern (like a credit card number) and automatically redact every instance across multiple documents without knowing the coordinates.
Why is the JavaScript console giving an error when I check coordinates?
This error usually occurs because the rectangular comment isn't actively selected. Make sure you click on the drawn shape so it is highlighted before running the 'selectedAnnots[0].rect' command in the console.
Is drawing a black box over text the same as redaction?
No. Drawing a shape over text only masks it visually. Anyone can still select, copy, or search the hidden text. True redaction physically deletes the text and image data from the document's code before placing the black box.




