Bytefusedocs

Compliance

Convert to PDF/A

Convert an ordinary PDF to archival PDF/A — the ISO format for long-term preservation — with an embedded sRGB output intent, in PDF/A-1b or PDF/A-2b conformance.

Free to try — no key required 40 credits / callSynchronous

Overview

Upload a PDF; receive a public R2 URL for the PDF/A output. On the free-try path.

POSThttps://api.bytefuse.in/api/v1/pdf/pdfa

Request

Content type multipart/form-data:

filefilerequired
The PDF to convert. Must end in .pdf (else 415).
conformanceintoptional
1 = PDF/A-1b, 2 = PDF/A-2b. Any value other than 1 is treated as 2.Default: 2

Response

200 OK, application/json:

200 OK
{
  "success": true,
  "url": "https://<r2-host>/pdfa/20260704/<uuid>.pdf",
  "credits_charged": 40,
  "conformance": "PDF/A-2b",
  "output_size": 184213
}

url is a public R2 link (no expires_at). X-Credits-Charged mirrors credits_charged (0 anonymous).

Examples

curl -X POST https://api.bytefuse.in/api/v1/pdf/pdfa \
  -H "X-API-Key: dt_live_your_key" \
  -F "file=@report.pdf" \
  -F "conformance=2"

Errors

415Missing filename or not a .pdf.
402 / 429 / 503Insufficient credits (authenticated), rate limited, or capacity/config error.
500Server-side conversion tooling (Ghostscript / sRGB profile) is unavailable, or the conversion failed.

To check whether a PDF is already PDF/A, see Validate PDF/A.