Convert to PDF/A
POST https://api.getdocuforge.dev/v1/pdf/pdfa
Convert a standard PDF to PDF/A-1b format for long-term archival and regulatory compliance.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
pdf | string | Yes | Base64-encoded PDF document |
title | string | No | Document title metadata |
author | string | No | Document author metadata |
subject | string | No | Document subject metadata |
output | string | No | "url" (default) or "base64" |
Example
Response (URL mode)
Response (base64 mode)
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid or missing PDF, or PDF exceeds size limit |
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 429 | RATE_LIMITED | Too many requests |
| 500 | INTERNAL_ERROR | Server error during conversion |

