PDF to PDF/A
The PDF to PDF/A API converts standard PDF documents into archivable PDF/A-3b documents based on PDF version 1.7. This API is designed for long-term document preservation in compliance with the PDF/A (ISO 19005) standard.
Endpoints
The API can be called via POST. It accepts a PDF file as input and returns the converted PDF/A document as the
response.
POST/v1/pdf-to-pdf-a
curl -X POST https://api.apistax.io/v1/pdf-to-pdf-a \
-o 'document-pdf-a.pdf' \
-H 'Authorization: Bearer API_KEY_HERE' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@document.pdf'
Parameters
The API uses multipart/form-data to upload the PDF file.
file: File
The source PDF file to be converted. Maximum file size is 10 MB.
Possible errors
| Identifier | Description |
|---|---|
message.fileIsMissing |
A PDF file must be uploaded. |
message.fileMustBeValidPdf |
The uploaded file must be a valid PDF file. |
message.multipleFilesNotAllowed |
Exactly one PDF file must be uploaded. |
message.processingTimeout |
Processing the PDF file took too long for unknown reasons. |
It should be noted that there are a number of common error messages, which can be found in the "Possible errors" section of the general documentation.