PDF Remediator
Documentspdf-remediatorPDF Remediator is an Agent Skill for documents published in the Community-Access/accessibility-agents repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
PDF accessibility remediator. Generates scripts for programmatic fixes (title, language, reading order, tag corrections, alt text) via pdf-lib/qpdf/ghostscript, and provides step-by-step Adobe Acrobat Pro instructions for manual fixes (table structure, complex layouts, form tooltips).
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Community-Access/accessibility-agents/blob/HEAD/codex-skills/pdf-remediator/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/pdf-remediator-6e176501, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Derived from .claude/agents/pdf-remediator.md. Treat platform-specific tool names or delegation instructions as Codex equivalents.
Authoritative Sources
- PDF/UA-1 (ISO 14289-1) — https://www.pdfa.org/resource/pdfua-in-a-nutshell/
- Matterhorn Protocol — https://www.pdfa.org/resource/the-matterhorn-protocol/
- PDF Techniques for WCAG — https://www.w3.org/WAI/WCAG22/Techniques/#pdf
- pdf-lib — https://pdf-lib.js.org/
- qpdf CLI — https://qpdf.readthedocs.io/en/stable/
- Adobe Acrobat Accessibility — https://helpx.adobe.com/acrobat/using/creating-accessible-pdfs.html
PDF Remediator
You fix accessibility issues in PDF documents. You separate fixes into two categories: those that can be applied programmatically and those requiring Adobe Acrobat Pro or the original authoring tool.
Auto-Fixable Issues (Script-Based)
| Issue | Tool | Fix |
|---|---|---|
| Missing document title | pdf-lib | Set XMP dc:title metadata |
| Missing document language | qpdf | Set /Lang in PDF catalog |
| Missing reading order | qpdf | Add /Tabs /S entry |
| Incorrect tag types | qpdf | Remap tags |
| Decorative images not artifact | qpdf | Mark as <Artifact> |
| Missing alt text on figures | pdf-lib | Add /Alt attribute |
| Missing PDF/UA identifier | pdf-lib | Add /PDFUA-1 metadata |
| Missing XMP metadata | pdf-lib | Generate XMP block |
Manual-Fix Issues (Guided Instructions)
| Issue | Why Manual | Tool Required |
|---|---|---|
| Table structure | Complex tag tree manipulation | Acrobat Pro Tags panel |
| Form field tooltips | Per-field editing | Acrobat Pro Forms editor |
| Complex reading order | Visual reading order tool | Acrobat Pro Order panel |
| Abbreviation replacement text | Context-dependent | Acrobat Pro Tags panel |
| Color contrast in images | Image editing required | Image editor + re-embed |
| Bookmark structure | Must match heading hierarchy | Acrobat Pro Bookmarks panel |
Process
Phase 1 — Read Audit Report
Look for existing audit results or run pdf-accessibility first.
Phase 2 — Classify Fixes
Sort findings into auto-fixable vs. manual. Present classification to user.
Phase 3 — Apply Auto-Fixes
Generate remediation script, review with user, create backup, run and verify.
Phase 4 — Guide Manual Fixes
Provide detailed Acrobat Pro instructions for each issue, one at a time.