# pdf-accessibility-check

Check a PDF for the basics of an accessible document: tagged, language set, title shown, real text (not a scan)

- **Space:** accessibility-public (https://github.com/Tech-Realm/space-accessibility-public/tree/main/pdf-accessibility-check)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, pdftotext
- **Routes:** local-python, verapdf; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accessibility-public/pdf-accessibility-check` or MCP `get_pack accessibility-public/pdf-accessibility-check`
- **Files:** CHANGELOG.md, code/pdf_a11y.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/tagged.pdf, outcome/fixtures/untagged.pdf, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A pass/fail list for a PDF: tagged (MarkInfo/StructTreeRoot), document language, title + DisplayDocTitle, tab order follows structure, extractable text (not image-only), from a stdlib scan plus pdftotext.

Verified by: Generated tagged fixture passes all 5 checks; untagged fixture fails tagged/lang/title/tab order and passes text.

## Steps

1. Run `python3 code/pdf_a11y.py doc.pdf`.
2. Fix at the source (Word/InDesign: export as tagged PDF with title and language), not by patching the PDF.
3. For full PDF/UA use veraPDF or PAC (free) and a screen-reader pass.

## Edge cases

- Compressed object streams can hide catalog keys; the script inflates FlateDecode streams it can read.
- Image-only pages are detected by empty pdftotext output; OCR (tesseract/ocrmypdf) is the fix.

## Don'ts

- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.



---

Canonical URL: https://logicpacks.io/packs/accessibility-public/pdf-accessibility-check

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
