PDF/A
Convert documents for long-term archiving.
The pdfa action converts the document to PDF/A: fonts embedded, colours defined, no external
content, and the metadata archives require. Levels: 1a, 1b, 2a, 2b (default), 2u, 3a,
3b, 3u. 2b suits most archives.
Cost: 1 unit per action.
Archive an invoice
curl https://api.nexpdf.dev/v1/build \
-H "Authorization: Bearer $NEXPDF_API_KEY" \
-F doc=@invoice.pdf \
-F 'instructions={
"parts": [
{
"file": "doc"
}
],
"actions": [
{
"type": "pdfa",
"level": "2b"
}
]
}' \
-o invoice-pdfa.pdf