Audit PDF accessibility (veraPDF)
audit_pdfAudit built PDFs for PDF/UA-2, WTPDF, and PDF/A-4f accessibility conformance with veraPDF. Returns a detailed report with failures and blocking issues.
Instructions
Audit built PDFs for accessibility conformance with veraPDF.
Use this to check whether a rendered PDF meets PDF/UA-2, WTPDF, and
PDF/A-4f before publishing; it shells out to ``verapdf`` read-only
and never modifies the PDF or the manifest. To produce a document's
source first call ``render``; to see which documents exist call
``list_docs``. This inspects existing PDFs only — it does not build
them.
Args:
target: PDF path or directory. Defaults to `build/` under
INCLUSIO_CONTENT_DIR.
strict: When True, every blocking-flavour FAIL is surfaced
in the response (`blocking_failure: True`); the caller
decides whether to treat this as an error.
Returns the audit report dict (summary, by_pdf, by_flavour).
Requires `verapdf` on PATH; the report contains
`verapdf_present: False` when it is not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strict | No | When true, every blocking-flavour FAIL is surfaced as `blocking_failure: true` in the response. | |
| target | No | PDF file path or directory to audit; defaults to `build/` under INCLUSIO_CONTENT_DIR. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||