PDF Security & Access Issues

How to Bulk Redact the Same Area in Multiple PDFs

Tauseeq MagsiTauseeq Magsi Nov 5, 2026 869 views

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.

How to Bulk Redact the Same Area in Multiple PDFs
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.
Before you start

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.

Solution 1Recommended

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.

1
Find the Redaction Area Coordinates

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.

2
Retrieve the Coordinates via JavaScript Console

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.

3
Create a New Action Wizard Script

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.

4
Configure the JavaScript and Apply

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.

Automate Fixed-Area Redaction Using Acrobat Action Wizard
Permanent Redaction Application: The JavaScript step only places the redaction marks. Ensure your script or action includes a command to physically apply the redactions (this.applyRedactions()), otherwise the sensitive data will still be accessible beneath the marks.
Secure Your PDFs Easily

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. 1. Open Your PDF in WPS Office: Launch WPS Office, select 'PDF', and open the document containing the sensitive information.
  2. 2. Access the Protect Tab: Navigate to the 'Protect' tab on the top ribbon menu and click on the 'Redact' tool.
  3. 3. Select the Area: Click and drag your cursor over the text, images, or blank areas you wish to securely conceal.
  4. 4. Apply Redactions Permanently: Click 'Apply Redactions' to permanently remove the underlying data and save the file safely.
Visually select and apply redactions with zero coding required.High compatibility with Adobe PDF formats and security standards.Lightweight desktop application that handles heavy PDF tasks smoothly.Comprehensive PDF toolkit including editing, signing, and conversion.
microsoft office alternative - wps office

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.