a11y-toolkit: PDF accessibility screening
a11y_audit_pdfScreen local PDF files for accessibility issues: verify tagged structure, title, language, alt text, and text layer, then return JSON findings.
Instructions
PDF accessibility screening — the space nobody automated (axe, pa11y, Lighthouse: HTML only). Zero-dep structural first pass on a LOCAL file: tagged tree (/StructTreeRoot — the root failure), title, language, outline, /Alt entries, text layer (scanned detection), encryption. Full PDF/UA conformance needs a spec validator (veraPDF); this finds the failures that make full validation pointless. Use for enterprise document pipelines and PDFs linked from the audited site. Returns JSON: {mode: "pdf", pages, tagged, lang, title, images, alt_entries, findings, summary, limits}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | output language | |
| path | Yes | local PDF file path (never fetched remotely — download it yourself first) |