Designing Accessible PDF Documents

With proper design settings, Oracle Documaker can produce accessible PDF documents.

Accessible PDF

When people talk about “accessible” PDF files, they usually are referring to “tagged” PDF files, even though there is more to an accessible PDF than tags.

Tagged PDF contains meta-information of certain groups of PDF instructions inside the page content. With the correct tags, a screen reader can understand where headings fall, what is a table, image, footnote etc. in a PDF document.

In order to produce accessible (tagged) PDF output, you must set Accessibility to Yes as shown below:

< PrtType:PDF >

Accessibility = Yes

Alternative Text

Screen readers may read alternative text, if present, to provide information about non-text content such as graphics. Documaker Studio enables users to specify alternate text on objects such as graphics, charts and hyperlinks.This alternate text is then embedded in the PDF output when the accessibility option is enabled.

To include text equivalent on objects, you may also use the Alternate Text field on the individual object. In Figure 1, alternate text has been supplied for the graphic object.

This figure shows the option of using Alternative Text for Images in Documaker Studio.
Figure 1: Option Showing Alternative Text for Images in Documaker Studio.

This figure shows the option of using Alternative Text for Hyperlinks in Documaker Studio.
Figure 2: Option Showing Alternative Text for Text Label in Documaker Studio.

Tips:

  • Good alternate descriptions are concise yet descriptive.
  • The alternate description “Download the WipEdit Plugin” is more descriptive than “Download Plugin”. Additionally, since voice synthesizers take into account punctuation, it is a good idea to end the alternate text with a punctuation mark. This will allow the screen reader to pause at the end of the alternate text aiding in comprehension of the content.

For mobile output, the alternate text for an object can be accessed with the keyword: documaker.alttext. Using this keyword in your snippet files will allow the mobile author to set the alternate text in the mobile output so that it is available when listening to the content.

Bookmarks

Bookmarks helps in easy navigation of voluminous documents. To enable the bookmark at Form/Page level or both at Form and Page levels, use the following INI settings:

< PrtType:PDF >

Accessibility = Yes

Bookmark = Yes,Page,Yes,Page

Color Contrast

Color should not be used as the only way to convey meaning. For example users with color vision deficiencies may not able to distinguish warning text that is in red from non warning text that is not red. The best option is to use meaningful text along with color. In a warning text, for example, the word Warning could be included to identify warning text from non-warning text. Also, there must be contrast between foreground and background colors to display the text correctly when rendered on a background with a different color.

When printing in color, there are two settings to consider:

  • SendColor is a print driver setting that must be enabled in order to print objects in color. For any individual object (text label, variable field, lines, boxes, etc.), the object’s color setting must also be marked as “Print in Color” in order for the object to print in color. When printing in color, make sure that the objects to be printed have appropriate contrast ratios.
  • When “Print in Color” is not enabled for an object, the print driver will print the object using Black. The other option is to enforce minimum color contrast for text.

In Documaker’s PDF output, use the following INI Settings:

< PrtType:PDF >

SendColor = N

When sendcolor is set to No, all content in the PDF is output in Black and White. Black and white creates the highest contrast possible.

Tips:

  • Do not attempt to convey information solely by color or textual styles. Assistive technology is unable to interpret the visual cues that sighted persons take for granted, such as automatically adding emphasis to bold text.
  • Consider fonts used to display the output. Select clear, readable fonts in an appropriate size for readability.
  • Text and images of text should have a luminosity contrast ratio of at least 4.5 to 1. Large scale text (point sizes 18 and higher) should have a minimum ratio of at least 3 to 1.

For more information on color contrast, refer to the following link:
https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html

Embedded Fonts

Consider the fonts used to generate the output. Select clear, readable fonts in an appropriate size for readability.

When a font has high readability, embedding fonts ensures that all recipients will be able to display the PDF as intended. Avoid embedding fonts with poor readability.

When embedding fonts, you must have either PostScript Type 1 or TrueType fonts. In addition, you must set the DownloadFonts to Yes as shown below:

< PrtType:PDF >

DownloadFonts = Yes, Enabled

The Font Name field under the PostScript Properties contains the file name of the PostScript or TrueType font you want to embed. This file should exist in the directory specified by the FontLib setting in your master resource library.

This figure shows the Embedded Fonts and their corresponding properties in Documaker Studio.
Figure 3: Embeded Font.

Hyphenation

When hyphenation causes a word to be split across two lines of a paragraph, screen readers split up hyphenated words instead of speaking them properly as single words. Hyphenation can make reading very confusing for screen reader users.

To eliminate potential hyphenation issues, set hyphenation to None.
This figure shows the Hyphenation setting in Text Area Options for a text area object in the Section Manager in Documaker Studio.
Figure 4: Using the Hyphenation setting in Text Area Options for a text area object in the Section Manager in Documaker Studio.

Tip:

You can set hyphenation to 'None' at the text area and Multiline Text field level.

Language Setup

To produce accessible documents in non-English languages, make sure to define the language being used in the PDF print type settings.

ISO 639 is the International Standard for language codes used in accessible PDF files. The Lang INI setting specifies the default language for the PDF document. For instance, for Dutch, the setting should be:

< PrtType:PDF >

Lang = nl

If the default language is not set, accessibility checker will fail with the following error:
“The test on this page lacks a language specification.”

Skip Reading

The Skip Reading attribute indicates whether the object should be included or excluded from being read by assistive technology. This setting could also be used on items that only need to be read once such as page numbers, headers and footers which are repeated on each page of a document. Enabling Skip Reading allows the assistive technology to by-pass the content within the PDF document.

This figure shows the Skip Reading option in Documaker Studio.
Figure 5: The Skip Reading Option in Documaker Studio.

Applying this attribute on content will cause the Skip Reading element to be enabled in the mobile output when using the default snippets or the keyword “documaker.skipread” within your implementation specific snippet files.
Ultimately, how the mobile output uses this information is up to the Mobile Author and your company’s requirements.

Studio Forms Manager: Read Once, Skip Reading

The Skip Reading attribute indicates whether the section should be included or excluded from being read by assistive technology.

The Read Once attribute indicates whether all of the objects in the section marked Read Once are excluded from being read by Assistive Technology whenever the section is copied on overflow to a subsequent page. The section is read by assistive technology on the initial page (i.e. Read Once). The section is excluded from being read on subsequent pages. This can be useful for header or footer sections that you wish to be read on the first page but would be considered repetitive when they are copied to subsequent pages (Copy on Overflow).

This figure shows using the form section options in Documaker Studio
Figure 6: The Form Section Options in Documaker Studio.

The Read Once option displays when copy on overflow is enabled:

This figure shows using the form section options (read once setting) in Documaker Studio
Figure 7: The Form Section Options (enabling Read Once option) in Documaker Studio.

Tab Order

Maintain a logical tab order for visually impaired users as they cannot see the field groupings. For instance, field tab order should generally be from left to right and top to bottom.

Use the column feature included in Oracle Documaker Studio. Columns are defined in text area where you can add more columns, rather than adding text labels or areas arranged in columnar format. Columns can also be defined in a multi-line text field or a text area marked for interactive editing in data entry. This allows the assistive technology to recognize the columns and mark the proper reading order.

Use a table rather than text labels or areas. Assistive technology typically traverse any table from left to right and from top to bottom in an accessible PDF file.

This figure shows the option of using the column feature in Documaker Studio.
Figure 8: Using the column feature in Documaker Studio.

This figure shows the option of using Tab Order via Navigation settings 'If blank go to' and 'If not blank go to' for Fields in Documaker Studio.
Figure 9: Using Tab Order via Navigation settings for Fields in Documaker Studio.

Tip:

Use text areas for bulleted or enumerated lists instead of individual static labels.

Tables

The content of an individual paragraph should be restricted to the same cell rather than splitting it to the next row as shown below.

Table 2: Valid usage of content within a Table.
Table Description
valid Customer Communications Management means leveraging a company's transaction documents such as, Marketing Campaigns, Personalized Correspondence, and Billing to improve customer relationships.

 

Table 3: Invalid usage of content within a Table.
Table Description
invalid Customer Communications Management means leveraging a company's transaction documents such as,
----------------------------------------------------------------------------------------------------------
Marketing Campaigns, Personalized Correspondence, and Billing to improve customer relationships.

Tips:

  • Use tables only when really needed.
  • Table Headings are required in a table.
  • Include a description of the table object.
  • Avoid using tables for columnar or listed data.
  • Avoid using tables for page-layout purposes.
  • Avoid using nested tables.

Note: Documaker has the option to define Alternative Text in a table object to improve readability.