Remove Text from the Same Area on Every PDF Page in Adobe Acrobat
Question details
Remove text from a fixed rectangular area on every page of a PDF using Acrobat JavaScript.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- The user wants to remove content from the same page region throughout a PDF.
- Observed behavior
- The desired result is a PDF in which content inside the specified rectangle has been permanently removed from every page.
Open the PDF in Adobe Acrobat Pro and identify the target rectangle in PDF page coordinates, measured in points from the lower-left corner. Check whether page sizes, crop boxes, or rotations differ, since one rectangle may not match the same visible area on every page.
Apply redactions to every page with Acrobat JavaScript
Use this method when the target content occupies the same page coordinates throughout the PDF.
Applying redactions removes content in the marked area rather than merely hiding it. The rectangle can also remove other content in that area, including graphics.
In Acrobat Pro, use File > Save As to create a copy, then open that copy before running the script.
With the PDF open, press Ctrl+J on Windows or Command+J on Mac to open the Acrobat JavaScript console.
Paste the following script into the console and replace the example coordinates with your own rectangle: var rect = [72, 720, 300, 680]; for (var i = 0; i < this.numPages; i++) { this.addAnnot({page: i, type: "Redact", rect: rect}); } this.applyRedactions(); Select the entire script and press Ctrl+Enter on Windows or Command+Enter on Mac. Follow any confirmation prompts.
Review pages throughout the document, including any with different sizes or rotations. Confirm that the intended content is removed, then use File > Save As to save the redacted PDF.

Work with PDFs and Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office documents. Its format compatibility makes it easier to move existing files into your workflow, although it does not run the Acrobat JavaScript redaction method described above.

Frequently Asked Questions
Why use redaction instead of placing a rectangle over the text?
A rectangle may only hide the text visually, leaving it selectable or searchable. Applying a redaction in Acrobat removes content from the marked area.
What do the rectangle coordinates represent?
The example uses page coordinates in points, with the origin at the lower-left corner. Replace the four values in the rect array with the bounds of the area you want to redact, and check the result on a test copy.
Will the same rectangle work on pages with different orientations?
Not necessarily. Different page sizes, crop boxes, or rotations can change where the rectangle appears. Inspect those pages and adjust the script or redact them separately if needed.
Can I undo an applied redaction?
Applied redactions are intended to be permanent and may not be reversible. Use File > Save As to make a test copy before applying them, and verify the result before saving the final version.




