Skip to main content
Checkpoint 07Low Priority2 failure conditions

Checkpoint 07: Dictionary

PDFs must be configured to display the document title rather than the filename in the viewer's title bar for better accessibility identification.

Related WCAG:2.4.2

Checkpoint 07: Dictionary

The PDF viewer preferences must be configured to display the document title in the title bar rather than the filename. This setting ensures users see meaningful identification when viewing the document.

What This Means

PDF documents contain a ViewerPreferences dictionary that controls how PDF readers display the document. One key setting is the DisplayDocTitle flag, which determines what appears in the application's title bar:

  • DisplayDocTitle = true: Shows the document's metadata title (e.g., "2024 Annual Accessibility Report")
  • DisplayDocTitle = false or missing: Shows the filename (e.g., "report-final-v3.pdf")

This checkpoint works in conjunction with Checkpoint 06 (Metadata). While Checkpoint 06 ensures the document has a meaningful title in its metadata, Checkpoint 07 ensures that title is actually displayed to users.

The ViewerPreferences dictionary is part of the PDF Catalog, which is the root object defining the document's structure. When properly configured, PDF readers honor this setting and display the title instead of potentially cryptic filenames.

Why It Matters

The title bar setting affects how users identify and distinguish documents:

  • Screen reader announcements: Many screen readers announce the window title when users switch applications. Hearing "2024 Tax Guidelines" is far more useful than "doc_2024_v3_final.pdf"
  • Task bar identification: When multiple PDFs are open, users rely on title bar text to switch between documents
  • Tab labels: In browsers and tabbed PDF viewers, the displayed title helps users navigate between documents
  • Professional appearance: Documents showing meaningful titles appear more polished and user-friendly
  • Accessibility compliance: This is a specific PDF/UA requirement that validators check

Consider a user with multiple PDFs open for research:

Without DisplayDocTitleWith DisplayDocTitle
research_paper_001.pdfIntroduction to Machine Learning
doc_final_revised.pdfClimate Change Impact Assessment
report-2024-03-15.pdfQuarterly Financial Report Q1 2024

The version with titles enabled allows users to quickly identify and navigate between documents, especially when using assistive technology.

Common Violations

The Matterhorn Protocol defines two failure conditions for this checkpoint. Both are machine testable.

07-001: ViewerPreferences Dictionary Missing DisplayDocTitle Key (Machine Testable)

What's Wrong: The PDF's Catalog dictionary contains a ViewerPreferences dictionary, but the DisplayDocTitle key is not present. Without this key, PDF readers default to showing the filename.

How to Identify:

  • PDF/UA validators automatically detect this
  • In Acrobat, go to File > Properties > Initial View
  • Check the "Show" dropdown in the Window Options section
  • If it shows "File Name," the setting needs to be changed

Technical Details: The PDF structure should include:

<< /Type /Catalog
   /ViewerPreferences <<
     /DisplayDocTitle true
   >>
   ...
>>

When the ViewerPreferences dictionary exists but lacks DisplayDocTitle, the key simply needs to be added.


07-002: DisplayDocTitle Key Has Value of False (Machine Testable)

What's Wrong: The DisplayDocTitle key exists in the ViewerPreferences dictionary but is explicitly set to false. This intentionally configures the document to show the filename instead of the title.

How to Identify:

  • PDF/UA validators will flag this immediately
  • In Acrobat, File > Properties > Initial View will show "File Name" selected
  • The document is configured, but configured incorrectly

Why This Happens:

  • PDF creation software defaulting to false
  • Explicit settings during PDF export
  • Copying preferences from non-accessible templates
  • PDF post-processing that resets preferences

How to Fix in Adobe Acrobat

Adobe Acrobat provides straightforward controls for the DisplayDocTitle setting.

Setting Display Title via Initial View

  1. Open your PDF in Adobe Acrobat Pro
  2. Go to File > Properties (or press Ctrl/Cmd + D)
  3. Click the Initial View tab
  4. In the "Window Options" section, find the "Show" dropdown
  5. Change it from "File Name" to "Document Title"
  6. Click OK to save

Verifying the Setting

  1. Go to File > Properties > Initial View
  2. Confirm "Show" is set to "Document Title"
  3. Close and reopen the document
  4. Check the window title bar displays the document title, not filename

Important Prerequisite

Before setting DisplayDocTitle to true, ensure the document has a meaningful title:

  1. Go to File > Properties > Description
  2. Verify the "Title" field contains a descriptive title
  3. If blank or containing a filename, enter a proper title first
  4. Then set the Initial View to show Document Title

If you set DisplayDocTitle to true but have no title in metadata, the title bar may show blank or "Untitled."

Using Preflight for Batch Processing

  1. Go to Tools > Print Production > Preflight
  2. Search for "DisplayDocTitle" in profiles
  3. Look for fixups that set viewer preferences
  4. Create an Action to apply to multiple documents

Creating an Action for Multiple Files

  1. Go to Tools > Action Wizard
  2. Click New Action
  3. Add a step to set Document Properties
  4. Configure Initial View to show Document Title
  5. Save the action
  6. Run on multiple files using Files to Process

How to Fix in Microsoft Word

Word's PDF export options do not directly control the DisplayDocTitle setting. However, you can influence it through proper export configuration.

Setting Up Document Properties

Before exporting, ensure your document has a title:

  1. Click File in the ribbon
  2. On the Info page, look at the Properties panel
  3. Click on "Title" and enter a meaningful title
  4. Alternatively, click Properties > Advanced Properties > Summary tab
  5. Enter the title and click OK

PDF Export Options

  1. Go to File > Save As or Export > Create PDF/XPS
  2. Click Options before saving
  3. Ensure "Document properties" is checked
  4. This transfers the title to the PDF

Post-Export Fix

Unfortunately, Word does not set the DisplayDocTitle preference:

  1. Export your PDF from Word
  2. Open the PDF in Adobe Acrobat
  3. Go to File > Properties > Initial View
  4. Set "Show" to "Document Title"
  5. Save the PDF

Using PDF/A Export

If your organization requires PDF/A format:

  1. Go to File > Save As
  2. Choose PDF from the format dropdown
  3. Click Options
  4. Select "ISO 19005-1 compliant (PDF/A)"
  5. Note: PDF/A does not guarantee DisplayDocTitle, but may work better with some tools

How to Fix in Other Applications

Adobe InDesign

  1. When exporting to PDF, go to File > Export
  2. Choose Adobe PDF format
  3. In the Export dialog, look for "Compatibility" options
  4. For PDF/UA compliance, use appropriate presets
  5. After export, verify or set DisplayDocTitle in Acrobat

LibreOffice

  1. Go to File > Export as PDF
  2. In the General tab, ensure "Export bookmarks" is checked
  3. Check the PDF/A option if available
  4. After export, open in Acrobat to set Initial View
  5. LibreOffice typically requires post-processing for this setting

Online PDF Converters

Most online converters do not set DisplayDocTitle:

  1. Generate your PDF using the converter
  2. Download the result
  3. Open in Adobe Acrobat or another PDF editor
  4. Set the Initial View to show Document Title
  5. Save the corrected file

Command-Line Tools

Using QPDF: QPDF can modify low-level PDF structures but requires manual JSON configuration for ViewerPreferences.

Using pdftk:

# Extract PDF info
pdftk input.pdf dump_data > info.txt
# Note: pdftk cannot directly set ViewerPreferences
# Use Acrobat or another tool for this setting

Using Ghostscript:

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \
-sOutputFile=output.pdf \
-c "[/DisplayDocTitle true /DOCVIEW pdfmark" \
-f input.pdf

Testing Your Fix

Automated Testing

Adobe Acrobat:

  1. Go to Tools > Accessibility > Accessibility Check
  2. Run the full accessibility check
  3. Look for "Title" related issues in Document category
  4. Check specifically for Initial View settings

PAC (PDF Accessibility Checker):

  1. Open the PDF in PAC
  2. Run the PDF/UA check
  3. Navigate to Checkpoint 07 results
  4. Both failure conditions will be flagged if present

veraPDF:

  1. Select PDF/UA-1 validation profile
  2. Run validation
  3. Look for rule results related to ViewerPreferences
  4. Check for DisplayDocTitle failures

Manual Verification

  1. Open the PDF in Adobe Acrobat Reader
  2. Look at the application title bar (not the window title in the PDF)
  3. Verify it shows the document title, not filename
  4. Close and reopen to confirm the setting persists

Browser Testing

  1. Open the PDF in Chrome, Firefox, or Edge
  2. Look at the browser tab text
  3. Verify the tab shows the document title
  4. If showing filename, the setting is not configured correctly

Cross-Platform Testing

Test on multiple platforms to ensure consistent behavior:

  1. Windows: Open in Adobe Reader, check title bar
  2. macOS: Open in Preview and Adobe Reader
  3. Linux: Open in common PDF readers (Evince, Okular)
  4. Mobile: Check document title display on iOS/Android

Validation Checklist

  • ViewerPreferences dictionary exists in PDF Catalog
  • DisplayDocTitle key is present
  • DisplayDocTitle value is true (not false)
  • Document has meaningful title in metadata (prerequisite)
  • Title bar displays the title, not filename
  • Browser tabs show the title
  • Screen reader announces proper title on document focus

Relationship with Other Checkpoints

Checkpoint 07 is closely related to Checkpoint 06 (Metadata):

  • Checkpoint 06: Ensures dc:title exists and is meaningful
  • Checkpoint 07: Ensures the title is displayed to users

Both must pass for proper title accessibility:

Checkpoint 06Checkpoint 07Result
PassPassUsers see meaningful title
PassFailTitle exists but filename shown
FailPassDisplayDocTitle true but no/bad title
FailFailNo title, filename shown

Always check and fix Checkpoint 06 before or alongside Checkpoint 07.

Additional Resources

Official Standards and Guidelines

PDF/UA Technical Resources

Tools


This documentation is based on the Matterhorn Protocol 1.02, the definitive reference for PDF/UA validation. Both failure conditions for this checkpoint are machine testable. For the most current information, consult the PDF Association and W3C WCAG guidelines.

Scan Your PDFs for Accessibility Issues

Beacon automatically detects PDF accessibility violations and shows you exactly how to fix them.

Start Free Scan