Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

remediate-pdf

БесплатноЗапускает вложенные скриптыНе проверен

Make existing documents accessible with the Nutrient Accessibility API: auto-tag PDFs with PDF/UA semantic structure (headings, lists, tables, reading order)…

PSPDFKit-labsот PSPDFKit-labs★ 18 звёзд на GitHub

Об этом скилле

Nutrient Remediate PDF

Make an existing document accessible with the Nutrient Accessibility API:

  • Auto-tag a PDF with PDF/UA semantic structure: headings (H1–H6), lists, tables (TR/TD/TH), reading order, and artifact marking. Writes a tagged copy; the original is untouched.
  • Validate a PDF against PDF/UA-1. Writes the JSON report and summarizes every failed check.

Files the Accessibility API can't take directly (Word, Excel, PowerPoint, images, scans without a text layer) are converted or OCR'd first with the document-processor-api skill.

When to use

  • "Make this PDF accessible" / "auto-tag for screen readers" / "tag this PDF for PDF/UA"
  • "Does this PDF pass PDF/UA?" / "validate this PDF for accessibility"
  • "Make this Word document accessible" / "make this scanned PDF accessible"
  • "Prepare this document for Section 508" (the tagging and PDF/UA checking steps)

Which path to take

For a check-only request, run validate.py on the supplied PDF as-is, regardless of its tags. Use the table when the user asks to prepare or remediate the file.

Input Path
PDF without tags autotag.py, then validate.py
PDF that already has tags validate.py first. If it fails, suggest Accessibility Studio's Repair, which keeps the existing tags. Re-tag with autotag.py only when the tags are unusable, and warn the user that re-tagging replaces the existing structure and alt text
Scanned PDF (no text layer) OCR with document-processor-api's ocr.py, then autotag.py, then validate.py
PDF with both digital text and scans Check whether the scanned pages contain text the reader needs and already have OCR. If required, OCR the missing text before tagging. Text on another page does not establish that the scanned pages are readable
Word, Excel, or PowerPoint file Best: fix it in the source (heading styles, alt text, title, language) and export a tagged PDF (Word: Save as PDF with "Document structure tags for accessibility"), then validate.py. Otherwise convert with document-processor-api's convert.py, then autotag.py and validate.py
Image of a document document-processor-api's ocr.py, then autotag.py and validate.py

Validate before the user publishes or shares a file. Auto-tagging is built to produce PDF/UA-1 conformant output, but not every file passes (see Anti-patterns). Skip validation only for internal drafts the user doesn't plan to publish.

OCR and conversion setup

The dashboard prompt installs remediate-pdf by itself. When you need OCR or conversion, install document-processor-api if the agent doesn't already have it:

  • Claude Code: if the marketplace is missing, run claude plugin marketplace add pspdfkit-labs/nutrient-skills. Then run claude plugin install nutrient-dws@nutrient-skills.
  • Skills CLI: run npx skills add pspdfkit-labs/nutrient-skills --skill document-processor-api and select the same agent.

Find the directory containing the installed document-processor-api/SKILL.md and use that directory for its script paths. Its scripts read NUTRIENT_API_KEY. If the dashboard set only NUTRIENT_ACCESSIBILITY_API_KEY, pass that same value as NUTRIENT_API_KEY in the Processor process environment on a unified plan. For a legacy account with separate keys, use the Processor key. Keep the values in the process environment.

With processor_skill_dir set to the installed skill directory, run the relevant command:

uv run "$processor_skill_dir/scripts/ocr.py" --input /abs/scan.pdf --languages english --out /abs/scan-ocr.pdf
uv run "$processor_skill_dir/scripts/convert.py" --input /abs/report.docx --format pdf --out /abs/report.pdf

Disambiguation from sibling skills

  • Use make-pdf (its own plugin: /plugin install make-pdf@nutrient-skills) to generate a NEW compliant PDF from Markdown or HTML.
  • Use document-processor-api to convert to PDF/A, merge, sign, or produce PDF/UA as one output target of a wider /build job. Both that skill and this one use the same auto-tagging engine (pdf_to_pdfua); this skill is the Accessibility API surface with validation.

Setup

  • Get an API key at https://dashboard.nutrient.io/. On current plans, one Nutrient account and key cover the Accessibility API and the Processor API.
  • Export it as NUTRIENT_ACCESSIBILITY_API_KEY (the scripts also accept NUTRIENT_API_KEY):
    export NUTRIENT_ACCESSIBILITY_API_KEY="pdf_live_..."
    
  • Run the scripts by their path in this skill directory and pass absolute paths for --input, --output, and --report, so the user's files resolve from any working directory:
    uv run <skill-dir>/scripts/autotag.py --help
    

Operations

autotag.py — auto-tag a PDF

uv run <skill-dir>/scripts/autotag.py --input /abs/doc.pdf --output /abs/doc-tagged.pdf
uv run <skill-dir>/scripts/autotag.py --url https://example.com/doc.pdf --output /abs/doc-tagge
Полный SKILL.md на GitHub

Установить remediate-pdf в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignorereferences/accessibility-api-reference.mdreferences/pdf-ua-wcag-compliance-notes.mdscripts/autotag.pyscripts/test_autotag.pyscripts/test_validate.pyscripts/validate.pyscripts/verify-pdf.py

FAQ

Что делает скилл remediate-pdf?

Make existing documents accessible with the Nutrient Accessibility API: auto-tag PDFs with PDF/UA semantic structure (headings, lists, tables, reading order) and validate PDFs against PDF/UA-1 with a JSON report of every failed check. Routes Word, image, and scanned files through conversion and OCR first. Use when the user wants to make a PDF accessible, auto-tag for screen readers, remediate for PDF/UA as part of Section 508 work, check whether a PDF passes PDF/UA, or make a Word file or scan accessible. Triggers include auto-tag PDF, make this PDF accessible, tag for screen readers, remediate accessibility, PDF/UA remediation, validate PDF/UA, or check PDF/UA. Hand edits to reading order, alt text, or tags go to Accessibility Studio. To generate a NEW accessible PDF from Markdown or HTML, use make-pdf instead. Converting to PDF/A, merging, or signing go to document-processor-api.

Как установить скилл remediate-pdf?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл remediate-pdf запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить remediate-pdf с