Techniques for WCAG 2.0

Skip to Content (Press Enter)

-

PDF18: Specifying the document title using the Title entry in the document information dictionary of a PDF document

Applicability

Tagged PDF documents

This technique relates to:

User Agent and Assistive Technology Support Notes

See PDF Technology Notes for information on user agent and assistive technology support.

Description

The intent of this technique is to show how a descriptive title for a PDF document can be specified for assistive technology by using the /Title entry in the document information dictionary and by setting the DisplayDocTitle flag to True in a viewer preferences dictionary. This is typically accomplished by using a tool for authoring PDF.

Document titles identify the current location without requiring users to read or interpret page content. User agents make the title of the page easily available to the user for identifying the page. For instance, a user agent may display the page title in the window title bar or as the name of the tab containing the page.

Examples

Example 1: Setting the document title in the metadata and specifying that the title be displayed in the title bar using Adobe Acrobat 9 Pro

This example is shown with Adobe Acrobat Pro. There are other software tools that perform similar functions. See the list of other software tools in PDF Authoring Tools that Provide Accessibility Support.

Open the PDF document in Adobe Acrobat Pro:

  1. Select File > Properties

  2. Select the Description tab to view the metadata in the document, including the document information dictionary

  3. Modify the Title field to add or change the document's Title entry

Viewing the Title field in the Description tab of the Properties dialog. The document title is entered in the field.

Note that, with Adobe Acrobat installed, you can also enter and read the data properties information from the desktop. Access the file's context menu, choose Properties, and select the PDF tab. Any information you type or edit in this dialog box also appears in the Document Properties Description when you open the file.

To display the document title in the title bar of a user agent:

  1. Select File > Properties

  2. Select the Initial View tab

  3. In the Window Options section, select Document Title in the Show pull-down list.

Specifying that the document title be displayed in the title bar. In the Window Options, Show Document Title is selected.

The title is displayed in the title bar, as shown in the image below.

Image of the Adobe Acrobat Pro title bar with the title of the document displayed.

This example is shown in operation in the working example of displaying document title in the title bar.

Example 2: A /Title entry in the document information dictionary of a PDF document

The following code fragment illustrates code that is typical for providing a /Title entry in a document information dictionary that contains a document title.

1 0 obj   
   << /Title (Applying Guerrilla Tactics to Usability Testing by People with Disabilities)    
      /Author (Mary Smith) 
      /CreationDate (D:19970915110347-08'00')    
   >>   
endobj

Resources

Resources are for information purposes only, no endorsement implied.

Tests

Procedure

  1. Verify that the title for the document is correctly specified and displayed in the user agent title bar by applying one of the following:

    • Open the PDF document with a screen reader, listening to hear that the document title is read correctly.

    • Using a PDF editor, check that the document title is specified. Select the Initial View tab to check that the title will be displayed.

    • Use a tool which is capable of showing the /Title entry value in the document catalog to open the PDF document and view the /Title entry and /DisplayDocTitle flag settings.

Expected Results

If this is a sufficient technique for a success criterion, failing this test procedure does not necessarily mean that the success criterion has not been satisfied in some other way, only that this technique has not been successfully implemented and can not be used to claim conformance.