PDF Editing Issues

Remove Text from the Same Area on Every PDF Page in Adobe Acrobat

Ayan MasoodAyan Masood Nov 19, 2026 868 views

Question details

Remove text from a fixed rectangular area on every page of a PDF using Acrobat JavaScript.

Remove Text from the Same Area on Every PDF Page in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Open a test copy

In Acrobat Pro, use File > Save As to create a copy, then open that copy before running the script.

2
Open the JavaScript console

With the PDF open, press Ctrl+J on Windows or Command+J on Mac to open the Acrobat JavaScript console.

3
Set and run the rectangle

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.

4
Inspect and save the result

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.

Apply redactions to every page with Acrobat JavaScript
Redaction is permanent: Applying redactions can also apply other existing redaction marks in the document. Inspect the test copy carefully before using the same method on the final file.
Free Microsoft Office alternative

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.

Open and review PDF documents alongside Office files.Work with Microsoft Office formats including DOCX, XLSX, and PPTX.Use a familiar interface to transition from other office suites.Access a free, lightweight office suite for everyday document work.
microsoft office alternative - wps office

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.