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.
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--
Your API Key
Get access to your API key when you create an account. Once your account has been created, you’ll be able to process 100 documents per month for free using any of our API tools.
Your API key has automatically been inserted into the API example code. Run the sample code in your terminal to execute the API call.