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
PDF Automation Station
Community Expert
Community Expert
January 14, 2025

The poster said "which repeat redactions of the same area" so I linked to your article.

Thom Parker
Community Expert
Community Expert
January 14, 2025

Thank You!  However, I think that quote was about how other post didn't work because they were about area location. 

 

But regardless. Clear, explicit info is needed to provide good advice. 

 

And on that topic, the poster stated they were having trouble with JavaScript.  So it would be helpful to see the script they are using. 

 

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