PDF to PDF/A
pdf_to_pdfaConvert PDF files to PDF/A-3b and validate the output with veraPDF for archival compliance; returns a job ID and a validation report.
Instructions
Convert a PDF to PDF/A-3b and validate the result with veraPDF.
The job always runs in the background: this returns a job ID, and the result comes from 'wait_job_completion'.
A result that is not compliant still finishes as success, so check isCompliant and validationReportUrl in the result.
Ref: https://developer.pdf.co/api/pdf-to-pdfa.md
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "pdf_to_pdfa"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. | |
| name | No | File name for the converted PDF. The validation report is named after it. (Optional) | |
| api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) | |
| expiration | No | Lifetime of the output and report links in minutes; the files are deleted afterwards. API default is 60; capped at seven days for PDF/A. (Optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tips | No | ||
| status | Yes | ||
| content | Yes | ||
| credits_used | No | ||
| credits_remaining | No |