Skip to main content
Participant
January 14, 2025
Question

Specific Area Redaction Automation

  • January 14, 2025
  • 2 replies
  • 1666 views

Hello, I've recently picked up a task involving a list of company names.

 

I need to use the redact tool to remove information from this list so that the entries for only one company are visible. I then need to repeat this process for each company.

 

I've tried using the JavaScript function but can't seem to get that to work, specifically with difficulty in labelling variables.

 

I looked in forums for similar posts but these seem to refer to processes which repeat redactions of the same area.

 

Thank you for any help.

2 replies

Thom Parker
Community Expert
Community Expert
January 14, 2025

How is the information identified?  It is simple to automate redaction if it's in the same location on every document, or it has a unique pattern that can be identified with text matching.  

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
January 15, 2025

The information is in a list containing entries for all companies and I need to redact the same original list multiple times to generate a redacted document for each unique company. (In the end I should have a redacted document for each company with all other companies' entries redacted)

 

I've quickly searched for text matching in the community but couldn't find anything specifically related to what I need. Could you kindly advise how I could look further into this?

 

Thank you for your help and time

Thom Parker
Community Expert
Community Expert
January 15, 2025

You need to tell us how the text that is to be redacted can be identified. 

for example:

1)  does the text appear in exactly the same page location in each document?

2) Can the text be identified from a search?  You say these are company names. Would redacting every instance of a company name work?  

 

In order to automate this process with a script we need to know the details. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
PDF Automation Station
Community Expert
Community Expert
January 14, 2025