Action Script for PDF Accessibility: Automate Properties

Screenshot of Acrobat Pro, showing the View dropdown open.

When working with a lot of PDFs as part of your day-to-day work, scripts to automate regular tasks can come in really handy.

The instructions below will automate some of the tasks that are often part of the workflow when creating accessible PDF documents. The tasks I am focusing on for this Script are found under *Properties* in PDF documents in *Adobe Acrobat Pro* (not Acrobat Reader). They include:

  • Add Tags to Document
  • Show Document Title
  • Show Bookmarks
  • Set the document Language
  • Run Full Accessibility Check

These instructions presume that the document is tagged and that you/your client is filling out Document Title and keywords in the original document’s File Info. If this is not the case, you’ll need to add those manually. To find out how to do this, I recommend the Accessible Digital Office Document Project (ADOD).

Screenshot of Acrobat Pro, showing the View dropdown open.

Acrobat XI:

  1. View > Tools > Action Wizard
  2. The Action Wizard panel will appear on the right hand side of your document. Select “Create New Action” from the menu. A window will appear, showing you the available options for creating an Action Script.
  3. To automate Add Tags to Document:
    1. Accessibility > Add Tags to Document.
    2. Click “Add to right hand pane,” the green plus (+) icon.
  4. Set the document’s Description, such as the document Title (if in the document Properties in Word or InDesign) and Author:
    1. Content > Add Document Description
    2. Click “Add to right hand pane,” the green plus (+) icon.
    3. Click “Specify Settings”. A box will appear with fields and check boxes.
    4. Uncheck “Prompt Use.”
      1. Note: Most existing Action Scripts have this checked, which is helpful in scenarios like training. However, prompting can be annoying when you already know what your doing. By unchecking “Prompt User” you are letting the Action Script run through its tasks without you giving it further permission.
    5. Leave the check boxes clicked for the info you want carried over from the original document. If you want something different, for example the author being Company X rather than whoever wrote the original document, you can put Company X in the Author field.
  5. Set the Initial View, such as Navigation Tab (Show Bookmarks) and Show: Document Title (not File Name)
    1. Document Processing > Set Open Options
    2. Click “Add to right hand pane,” the green plus (+) icon.
    3. Uncheck “Prompt User”
    4. Click “Specify Settings.” Under Initial View, select Bookmarks & Page, and under Window Options, you’ll see Display Document Title. Select “Yes” instead of “Leave As Is”
  6. Set Reading Language:
    1. Accessibility > Set Reading Language.
    2. Click “Add to right hand pane,” the green plus (+) icon.
    3. Uncheck “Prompt User”
    4. Click “Specify Settings.”
    5. Select English from the language options. (if you often work with documents written in other languages, you can set up different Action Scripts for French, Spanish etc).
  7. To automate running the Full Accessibility Check:
    1. Accessibility > Full Accessibility Check
    2. Click “Add to right hand pane,” the green plus (+) icon.
    3. Uncheck “Prompt User”
  8. Once you have finished applying the necessary tasks to your Action Script, select “Save”
  9. Enter the desired name and description for your Action Script.
  10. And ta-da! You’re done!

Resources:

Standardize Routine PDF Tasks

SCreenshot of the Edit Action script panel and the Manage Action Script panel in Acrobat DC

Acrobat DC

Acrobat DC comes with an Action Script called ‘Make Accessible’. However, you may not want it to do all the tasks it comes with (OCR, autotag etc) or prompt you at every step (inefficient use of time). You can either make your own Action Script, or create a revised version to suit your needs.

  1. Open Tools and scroll down to Customize.
  2. Select Action Wizard (Note: to add it to your sidebar in Acrobat for quick access in future, click ‘Add’)
  3. Select “Manage Actions” in the top navigation bar
  4. You will see a list of Actions. Select “Make Accessible” (default script) and select Copy.
  5. Enter a new or revised name
  6. With your copied script selected, click Edit.
  7. Select the actions you with to edit/delete and change as you best see fit.

Resources:

Action Wizard (Acrobat Pro DC)

Create and verify PDF accessibility (Acrobat Pro DC)

Author: nchitty

Inclusive designer based out of Toronto.

Leave a comment