How to Batch-Detect Unapplied PDF Redaction Markups in Adobe Acrobat
Question details
The user needs a method to scan multiple PDF files simultaneously to find unapplied redaction markups without having to manually open each document.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Auditing or preparing a large batch of PDF documents to ensure no sensitive information is left exposed via unapplied redaction marks.
- Observed behavior
- The user wants to identify which PDFs in a directory contain redaction markups that have been placed but not permanently applied.
Ensure you have Adobe Acrobat Pro installed, as the standard version does not support creating custom Action Wizards with JavaScript. Gather all target PDF files into a single folder for seamless batch processing.
Create an Acrobat Pro Action with JavaScript
This method uses Adobe Acrobat Pro's Action Wizard to automate the scanning process across multiple files, executing a custom JavaScript that logs which documents contain unapplied redaction markups to the console.
By utilizing the Action Wizard combined with a brief JavaScript snippet, Acrobat can iterate through a folder of PDFs in the background, check the annotation types for 'Redact', and output the results.
This saves you from manually opening each document to verify whether redaction marks have been permanently applied.
Launch Adobe Acrobat Pro. Go to the 'Tools' tab, locate the 'Action Wizard' tool, and click on it. Select 'New Action' from the toolbar to start creating your batch process.
In the 'Files to be Processed' section on the left, click 'Add Folder' (or 'Add Files') and select the directory containing the PDFs you want to scan.
Under 'Choose tools to add' on the left side, expand the 'More Tools' category. Select 'Execute JavaScript' and click the '+' button in the middle to add it to your action steps on the right. Make sure to uncheck the 'Prompt user' checkbox so the action runs automatically.
Click 'Specify Settings' on the newly added Execute JavaScript step. Write a script that synchronizes annotations using 'this.syncAnnotScan()', retrieves annotations using 'this.getAnnots()', and checks if the 'annot.type' equals 'Redact'. Use 'console.println(this.documentFileName)' to output the names of files containing these markups. Click 'OK' when finished.
Click 'Save' and give your Action a descriptive name, like 'Detect Redactions'. Click on the newly created Action in the Action Wizard list and press 'Start'. After processing, press Ctrl+J (or Cmd+J on Mac) to open the JavaScript Console and view the list of flagged PDFs.

Securely Redact Sensitive Information in WPS Office
While advanced JavaScript batch processing requires specialized coding, WPS Office provides a straightforward, highly intuitive way to permanently redact sensitive text and images in your PDFs, ensuring your data is secure before sharing.
- 1. Open your PDF: Launch WPS Office and open the PDF document containing the sensitive information you need to hide.
- 2. Select the Redaction Tool: Navigate to the 'Protect' tab on the top ribbon and click on the 'Redact' button. Select 'Mark for Redaction'.
- 3. Highlight Sensitive Content: Drag your cursor over the specific text, images, or entire areas you want to permanently hide from viewers.
- 4. Apply Redactions: Click 'Apply Redactions' in the Protect tab. WPS will permanently remove the underlying data and replace it with black boxes, ensuring it cannot be recovered.

Frequently Asked Questions
What is the difference between a redaction markup and an applied redaction?
A redaction markup is simply a visible placeholder box indicating where content will be removed. The actual underlying data is still present and readable in the file until the redaction is permanently 'applied', which irrevocably deletes the underlying text or image from the document.
Can standard Adobe Acrobat or Adobe Reader run batch actions?
No, the Action Wizard and advanced JavaScript batch processing tools are exclusive to Adobe Acrobat Pro. Adobe Reader can only view and add basic comments, while Acrobat Standard lacks the Action Wizard feature required for batch processing.
How do I permanently apply redactions to ensure the data is safe?
In Acrobat Pro, after placing your redaction marks, go to the Redact tool ribbon, click 'Apply', and then save the document. Always inspect the document for hidden information and metadata before sharing to ensure all sensitive data is fully and permanently removed.
Why do I need JavaScript to find unapplied redactions?
Acrobat's built-in search tools look for specific text strings, not document structure elements or annotation types across multiple files simultaneously. JavaScript allows you to query the document's internal metadata (like annotation types) and automatically log the results for an entire batch of files.




