Validate PDF/UA structure
validate_pdfValidate PDF/UA structural conformance by checking accessibility prerequisites like metadata, language, and structure tree. Returns valid flag with errors and warnings.
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 |
|---|---|---|---|
| pdfBase64 | Yes | Base64-encoded PDF bytes to validate for PDF/UA (ISO 14289-1) structural conformance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| standard | Yes | Conformance standard checked (ISO 14289-1). | |
| valid | Yes | True when no blocking structural violations were found. | |
| errors | Yes | Blocking PDF/UA conformance violations. Empty when valid is true. | |
| warnings | Yes | Non-blocking best-practice recommendations. | |
| summary | Yes | Human-readable one-line summary of the result. |