Test an embedded PDF as a complete reading journey, from finding it on the page to operating the viewer and understanding the document. A clean page audit can miss problems inside a browser-provided or third-party viewer. A tagged PDF can also become difficult to use when the surrounding interface hides controls, traps focus, or provides no practical route outside the embed.
Identify the page, viewer, and document boundaries
For a fictional visitor-information page, the embedded guide may sit between travel directions and a contact form. The page owns the heading and links around the embed. The viewer owns controls such as page navigation and zoom. The PDF owns its text, structure, images, and internal links. Record findings at the correct boundary so the team knows which change can resolve them.
Identify how the viewer is delivered: a browser's built-in PDF handling, an iframe, a script-based reader, or a third-party service. Test the supported browsers and devices rather than assuming the same interface appears everywhere. An element that loads correctly on one desktop can open a separate application or show a limited preview elsewhere.
Provide context before the reader enters
Give the document a meaningful heading and explain its purpose. If an iframe is used, W3C technique H64 describes a title attribute that identifies its contents. The frame's title is different from the document title and does not label every control inside the viewer. Review those names separately.
<h2>Visitor guide</h2>
<p><a href="/documents/visitor-guide.pdf">Open the visitor guide PDF</a></p>
<iframe
src="/documents/visitor-guide.pdf"
title="Visitor guide PDF preview"
></iframe>Keep the direct link outside the embedded content so it remains discoverable when the viewer fails to load or is awkward to operate. Name the destination meaningfully and make clear that it is a PDF. This page pattern is only a starting point; it is not a complete accessible viewer implementation, and the linked document still needs its own review.
Test keyboard entry, operation, and exit
W3C's No Keyboard Trap explanation addresses the ability to move focus away from a component using the keyboard. If a nonstandard exit method is required, users need to be informed. In practice, test both entering the viewer from the preceding page content and leaving it for the next meaningful control.
| Task | Expected experience | Finding to record |
|---|---|---|
| Reach the preview | The reader knows which document the frame contains | Missing or ambiguous frame identification |
| Operate page controls | Controls can be reached, understood, and activated | Unlabeled or unreachable actions |
| Leave the viewer | Keyboard focus returns to the surrounding page through an understandable route | Focus cannot leave or disappears unpredictably |
| Open the document directly | A meaningful external route reaches the intended revision | Link is hidden, stale, or points to a different file |
Use normal forward and backward navigation, then any documented viewer shortcuts. Test search, page selection, zoom, and links that are essential to the reading task. Do not assume a working mouse control is also keyboard operable. Record the browser, viewer, operating system, and assistive technology with the result.
Check visible focus, sizing, and reading behavior
W3C's Focus Visible explanation describes the need to identify the currently focused keyboard control. Check that focus remains visible on viewer buttons and on the surrounding page. Styling that removes outlines or clips a control can make an otherwise operable sequence difficult to follow.
Review the page at narrow widths and increased zoom. Check whether nested scrolling obscures controls, whether the viewer remains large enough to use, and whether the direct route stays available. Then test the PDF's actual reading sequence, headings, tables, and links in the intended environment. Page-level automation alone cannot settle those document questions.
Evaluate the fallback as a real route
- Open the direct document link with a keyboard and confirm the expected file revision and permission behavior.
- Test the essential reading task in the supported direct-view or download environment.
- If HTML is offered, compare its substantive content and interactions with the PDF rather than assuming equivalence.
- Explain any supported-viewer requirement before the reader starts a difficult interaction.
- Repeat checks after viewer upgrades, embedding changes, or document replacements.
A fallback link is useful, but its presence does not excuse a keyboard trap or establish that the alternative document is accessible. Fix the page and viewer issues within your control and evaluate the alternate route on its merits. Use the PDF form guide for interactive documents, the screen-reader guide for content review, and the WordPress workflow when a CMS manages the file and embed.
Frequently asked questions
Does adding an iframe title make a PDF embed accessible?
An iframe title identifies the frame's contents. The viewer's controls, keyboard behavior, focus visibility, and PDF content still need separate review, including the actual reading task in supported environments.
Is a download link enough when the viewer traps keyboard focus?
A direct link is useful but does not repair a keyboard trap in the embedded interface. Ensure a usable entry and exit route, test the alternate path, and address the viewer or page behavior that prevents keyboard navigation.
Should an embedded PDF be tested on mobile?
Test the devices and browsers the publication supports because PDF handling and available controls can differ. Check narrow layouts, zoom, nested scrolling, direct access, and the essential reading task rather than only confirming that a preview appears.
Sources
The statements above rest on the primary sources below. Where a source is a law or standard, the version and date named in the text are the ones checked on the review date. This guide is general information, not legal advice.
Keep reading
Accessible PDF form validation and error messages
Test required PDF fields, format errors, keyboard recovery, and saved values so people can complete the form beyond the happy path.
Read the guide →How to test a PDF with a screen reader
A repeatable screen reader test for PDFs with NVDA, JAWS, or VoiceOver: which viewer to open the file in, the keystrokes to use, what to listen for, and independent data on which viewers expose tags.
Read the guide →Replace WordPress PDFs: accessibility checks
Replace a reviewed PDF in WordPress while checking media records, direct URLs, file blocks, redirects, caches, and the version visitors download.
Read the guide →