top of page

If you have a set of PDFs which attorneys have highlighted to show which excerpts in the documents they want to be redacted, you can run a Javascript in Adobe Acrobat to convert the highlighted text to redactions.


Follow these steps:


  1. In Acrobat, under Tools, open the 'Action Wizard'.


ree
  1. Select 'New Action'


    ree

. . . and then add the 'Execute JavaScript' tool. Be sure to uncheck 'Prompt User'


ree

  1. Click on 'Specify Settings' and then add the below script into the Editor:



this.syncAnnotScan();

var annots = this.getAnnots();

if (annots != null) {

    for (var i in annots) {

        var annot = annots[i];

        if (annot.type == "Highlight") {

                                    annot.type = "Redact";

                                    annot.fillColor = color.black

                        }

    }

}

this.applyRedactions();



ree

  1. Next, add a command in the action to save the file.

ree
  1. Under the Save settings, enter a suffix for the new file that will be saved:

    ree

  2. Name and save the new action:


ree

  1. When you run the action


ree

. . . it will prompt you to select multiple files



ree




This script will redact highlighting of different colors - not just yellow, but pink, blue, green, or whatever color has been used.



ree


ree

Note that if other text in the PDF has been marked for redaction:


ree


. . . this script will apply those redactions.



ree

 
 

Courts frequently request that a copy of a court filing be submitted on a flash which contains hyperlinks to exhibits which are cited in the filing. If you don't want to add the url for where an exhibit was filed on PACER or on a state court docket, and you don't want to create one long, 100 MB plus PDF with internal links to each exhibit, it is possible to add links to PDFs of the exhibits which are on the same flash drive as the PDF of the main filing.


Obviously, anytime a flash drive is inserted in a different PC it can be assigned a different drive letter. Acrobat provides a way to add 'relative paths' which omit a full file path including a drive letter, and will simply point to the same location the open PDF is located in.


Follow these steps:


  1. Put both the main document and the documents you are linking to in the same folder on the flash drive.

 

ree

  

 

  1. Click ‘Edit PDF’ from the toolbar:

 

 

ree

 

 3. Select the option for ‘Add/Edit web or Document Link’

  

ree

 

 

  1. Choose the option for ‘Open a web page’, not ‘Open a file’

 

 

ree

 


  

  1. Just enter the filename of the document you are linking to – not the full filepath.  Remember each document you are linking to should be in the same folder as the court filing or whichever file has the links.

  

ree

 

 

Now no matter where the files in the folder are copied to, Adobe Acrobat should open a relative path – it will open the linked files assuming that they are in the same folder as the PDF the links have been added to.

 

ree

 

 

I tested this method by copying the files to more than one location on a network, and also with the data copied to a flash drive used with two different laptops, and then with the data copied off the drive and onto the hard drive of each laptop.  The links worked each time.

 

The only problem I encountered was when I tried to open the links using an open source PDF editor (for which I did not have a full license) instead of Acrobat.  However, the links did work when I simply opened the PDFs in Edge or Chrome, so if a recipient does not have Acrobat, they will still certainly be able to open a copy of the PDF with working hyperlinks.

 

 

 
 

The Tip of the Night for January 14, 2023 discussed how to remove hyperlinks from PDFs being filed with a court.


'Flattening' a PDF is a common step to take before filing a document electronically in order to ensure that forms on the PDF can't be subsequently altered. Courts usually view writing a PDF file to a new PDF as being sufficient to flatten the document. On its web page entitled, 'Flattening a Fillable PDF', the Second Circuit instructs e-filers to print out court filings to new PDFs in Acrobat.


ree

Likewise the site of the United States Court of Appeals for the Fourth Circuit has a page entitled, "How to Flatten PDF Forms", that recommends flattening filings the same way.


ree

See the sites of the United States District Court for the Northern District of Mississippi ("What is 'Flattening a PDF?"); the United States District Court for the Western District of New York ("How to Flatten a PDF File or Form for Filing in CM/ECF"); and the United States District Court for the North District of Texas ("Flattening a PDF File").


But writing a PDF to a new PDF file, will not necessarily remove all of the links in the PDF. You can however use an option under the Preflight function in Acrobat, named 'flatten annotations and form fields' which will remove all of the links in a PDF, without doing a conversion to tiff image format as discussed in the January 14, 2023 tip. In my testing this method removes links in the footers of PDFs, which simply writing a file to a new PDF file will not.


We can also set up this function in an Adobe action to process multiple PDFs by following the below steps, which is a big advantage over the approach used on the courts' web sites.


  1. Create a new action and select 'Preflight' under the 'Document Processing' menu from the list of tools on the left.


ree

2. Under the 'Acrobat Pro DC 2015 Profiles' pick the option for 'Flatten annotations and form fields'.


3. Set the processed PDFs to be outputted to a new folder:


ree

4. Add a save function to the action:


ree


You'll be able to use this action to remove the links from multiple PDF files which have been prepared for filing.





 
 

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page