Validate a PDF against PDF/A
validate_pdfaCheck whether a PDF conforms to PDF/A, the ISO archiving standard, with veraPDF.
Input: pdf_base64 is the PDF as base64, at most 4 MB decoded; or pass the
file as a download link in file. profile picks the PDF/A part and level.
Returns compliant (true or false), profile_name (the profile veraPDF
used), statement, passed_rules, failed_rules and top_failed_rules:
up to 10 failed rules with their id (clause and test number),
specification, description and failed_checks. A file that is not a PDF
fails with not_a_pdf; an unavailable veraPDF with engine_unavailable.
For the full report in JSON, XML or HTML, use the REST API
(POST /v1/verapdf/api/validate/{profile}).
Credits: 2 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The file as a download link, instead of `pdf_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL. | |
| profile | No | The PDF/A part and level, such as "2b" or "3a". "auto" (the default) checks against the part the file declares, and against PDF/A-1b when it declares none. | auto |
| pdf_base64 | No | The PDF, base64-encoded. At most 4 MB decoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||