PDF/A Validation API

Ensure PDF/A files meet conformance levels with our PDF/A Validation API. Automatically analyze PDF structure; lexical, syntactic, and semantic levels; and metadata, fonts, color space, and other properties in your app or workflow.

Why PSPDFKit API?

SOC 2 Compliant

Build the workflows you need without worrying about security. We don’t store any document data, and our API endpoints are served through encrypted connections.

Easy Integration

Get up and running in hours, not weeks. Access well-documented APIs and code samples that make integrating with your existing workflows a snap.

One Document, Endless Actions

With access to more than 30 tools, you can process one document in multiple ways by combining API actions. Convert, OCR, rotate, and watermark with one API call.

Simple and Transparent Pricing

Pay only for the number of documents you process. You won’t need to consider file size, datasets being merged, or different API actions being called.

Try It Out

This example will validate the conformance of an uploaded PDF file. It returns a report with the level of conformance of the PDF/A file and the errors encountered during validation.

1

Use Your Free API Calls

Sign up to process 100 documents per month for free, or log in to automatically add your API key to sample code.

Add a File

Add a PDF named pdfa.pdf to your project folder. You can use our sample document. The file name is case sensitive. Make sure the file name matches the file name in the sample code.

Run the Code

Copy the code and run it from the same folder you added the files to. For more information, see our language-specific getting started guides.

View the Results

Open result.json in your project folder to view the results.

curl -X POST https://api.pspdfkit.com/validate_pdfa \
  -H "Authorization: Bearer your_api_key_here" \
  -o result.json \
  --fail \
  -F file=@pdfa.pdf
curl -X POST https://api.pspdfkit.com/validate_pdfa ^
  -H "Authorization: Bearer your_api_key_here" ^
  -o result.json ^
  --fail ^
  -F file=@pdfa.pdf
POST https://api.pspdfkit.com/validate_pdfa HTTP/1.1
Content-Type: multipart/form-data; boundary=--customboundary
Authorization: Bearer your_api_key_here

--customboundary
Content-Disposition: form-data; name="file"; filename="pdfa.pdf"
Content-Type: application/pdf

(file data)
--customboundary--
Using Postman? Download our official collection and start using the API with a single click. Read more 

Your API Key