Free plan

Validate PDF/A and Accessibility

Check if a PDF meets archive and accessibility standards
POST
/v1/pdfs/validate

About this tool

This tool checks a PDF against standards: PDF/A, the format meant for long-term archives, PDF/UA, the standard for accessible PDFs, and basic accessibility such as tags, language and title. These help people who use screen readers (software that reads aloud). You get a pass or fail answer and the rules that failed. Your file is not changed.
For example, a government office asks for archive-ready files, so you check yours before you submit it.

How to use it

  1. Choose this tool.
  2. Add your PDF.
  3. Choose which checks to run: archive (PDF/A), accessibility (PDF/UA) or the basics.
  4. If you know the exact PDF/A version required, choose it, otherwise leave it on automatic.
  5. Press Generate, then read the report.

What you get back

You get a report with a pass or fail and a list of the rules that failed. You can copy or download it.
GOOD TO KNOW
Validation is done by veraPDF, the reference open-source validator: a file is never called conforming on a guess. Counts as one file.
TEST IT LIVE

Try Validate PDF/A and Accessibility in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/validate
Tool ID
pdfs.validate
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/validate" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'standards=["pdfa","pdfua"]' \
  -F 'pdfa_flavour=auto' \
  -F 'validate_only=false'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.validate({
    "file": 'document.pdf',
    "standards": "[\"pdfa\",\"pdfua\"]",
    "pdfa_flavour": "auto",
    "validate_only": false
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->validate([
    'file' => 'document.pdf',
    'standards' => '["pdfa","pdfua"]',
    'pdfa_flavour' => 'auto',
    'validate_only' => false,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Check a PDF against PDF/A (archiving), PDF/UA (accessibility) and the accessibility basics (tags, language, title) in one call, with one pass or fail answer and the rules that failed.

Validate PDF/A and Accessibility accepts PDF. You can send several files in one request.

Validate PDF/A and Accessibility is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/validate with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.