PDF kit command
pdfa.verify
Verify PDF/A
Standards ▸ Verify PDF/A compliance: the PDF/A-2b or 3b rules the document breaks (ISO 19005 clause, message, page, whether Save as PDF/A can fix it), plus what it declares.
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
level | "2b" | "3b" | no | Default 2b. |
Call through pdf_run
text
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "pdfa.verify" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: level. pdf_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
compliant | boolean | no | |
declared | object | no | |
issues | object[] | no | |
level | string | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"compliant": {
"type": "boolean"
},
"declared": {
"additionalProperties": true,
"properties": {
"output_intents": {
"type": "array"
},
"pdfa": {},
"pdfua": {}
},
"type": "object"
},
"issues": {
"items": {
"additionalProperties": true,
"properties": {
"clause": {
"type": "string"
},
"fixable": {
"type": "boolean"
},
"message": {
"type": "string"
},
"page": {}
},
"type": "object"
},
"type": "array"
},
"level": {
"type": "string"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"level": {
"description": "Default 2b.",
"enum": [
"2b",
"3b"
],
"type": "string"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (pdf_commands through @kition/[email protected], built from KitionAI/kition-pdf@b0d2725). As data: commands.jsonl.