Validate PDF/UA structure
validate_pdfVerifies Tagged PDF conformance to PDF/UA (ISO 14289-1) by checking structural accessibility prerequisites, including metadata, language, and page structure.
Instructions
Read-only PDF/UA (ISO 14289-1) structural conformance check. Verifies the accessibility prerequisites of a Tagged PDF: catalog /MarkInfo /Marked true, /StructTreeRoot (+ /ParentTree), /Metadata (XMP), /Lang, and per-page MCID uniqueness. Response shape: { standard: 'pdf-ua-1', valid, errors: [], warnings: [], summary }. Read valid for an overall yes/no; iterate errors[] for blocking violations and warnings[] for best-practice recommendations. This is a fast structural gate, NOT a full reference validator (veraPDF) — it does not check fonts, colour or rendering. Generate accessible input with any document tool using pdfA (e.g. pdfA='pdfa2u'), then validate the result here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Optional dot-path projection applied to the structured result (e.g. ['valid']). Composes after verbosity. Unknown paths are omitted. | |
| pdfBase64 | Yes | Base64-encoded PDF bytes to validate for PDF/UA (ISO 14289-1) structural conformance. | |
| verbosity | No | Response verbosity. 'full' (default) returns errors[] and warnings[]; 'summary' returns a token-frugal verdict { standard, valid, errorCount, warningCount, summary } and drops the message arrays. | full |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when no blocking structural violations were found. | |
| errors | Yes | Blocking PDF/UA conformance violations. Empty when valid is true. | |
| summary | Yes | Human-readable one-line summary of the result. | |
| standard | Yes | Conformance standard checked (ISO 14289-1). | |
| warnings | Yes | Non-blocking best-practice recommendations. |