Text
Find text requirements for testing PDFs.
Text (PDF-5)
Language of document (PDF-5-1)
Each document MUST have a language property that matches the language of the document.
How to test
Tool: Adobe Acrobat Pro- Open the document in Adobe Acrobat Pro and navigate to File > Properties > Advanced Tab.
- Verify that the language used matches the content of the page.
Test outcomes
-
Pass: A valid language is specified.
-
Fail: A valid language is not specified.
Related WCAG criteria
- WCAG 2.2 A - 3.1.1 Language of Page
- PDF UA/1 - 7.2 Text
Tab and reading order (PDF-5-2)
Users shall be able to navigate through content in a logical order that is consistent with the meaning of the content.
How to test
Tool: Adobe Acrobat Pro- Use the Reading Order tool to verify the content is in the correct sequence.
- Navigate through the page using a keyboard and verify that all interactive content appears in the right order when using the Tab key.
Test outcomes
-
Pass: The sequence of the content and the order of tabbing through interactive elements is correct.
-
Fail: Either the sequence of the content or the order of tabbing through interactive elements is incorrect.
Related WCAG criteria
- WCAG 2.2 A - 1.3.2 Meaningful Sequence
- PDF UA/1 - 7.2 Text
Headings and footers (PDF-5-3)
Users shall be able to locate themselves in a document by providing running headers and footers in a consistent and predictable way via pagination artifacts.
How to test
Tool: Adobe Acrobat Pro- Inspect the document for running headers and footers.
- Verify that they are consistent on all pages.
- Verify that whether the content appears within the header or footer on multiple pages is redundant or not.
- Verify that redundant content is marked as an artifact.
Test outcomes
-
Pass: All headers and footers are consistent across the pages AND the redundant information is marked as an artifact.
-
Fail: Any headers or footers are inconsistent across the pages OR the redundant information is not marked as an artifact.
-
NA: No headers or footers are present in the document.
Related WCAG criteria
- WCAG 2.2 AA - 3.2.3 Consistent Navigation
- PDF UA/1 - 7.8 Page Headers and Footers
Language of parts (PDF-5-4)
A lang attribute MUST be set on every word or phrase that is in a different language than the document’s main language.
How to test
Tool: Adobe Acrobat Pro- Find words or phrases in the document that are in a different language than the rest of the content.
- Access the tags panel and identify the tags related to the content in the different language.
- Verify the properties of these tags to ensure the correct language is selected for each word or phrase.
Test outcomes
-
Pass: All words or phrases in a different language from the rest of the content have the correct language property set at the content level.
-
Fail: Any words or phrases in a different language from the rest of the content do not have the correct language property set at the content level.
-
NA: The document doesn’t contain any words or phrases in a language different from the main document language.
Related WCAG criteria
- WCAG 2.2 AA - 3.1.2 Language of Parts
- PDF UA/1 - 7.2 Text