Skip to content

Fast PDF accessibility & compliance validation

Check PDF documents against accessibility and compliance requirements with a Rust-based engine available as a CLI, Rust crate, Python package, or browser JavaScript package.

Get started Try the demo

$ page document.pdf --profile ua1
Result :Conformant
Profile :PDF/UA-1
Time :0.005s

Built for trustworthy validation

  • Accessibility


    Check PDFs against PDF/UA-1 accessibility requirements.

  • Archiving


    Validate PDF/A-1, PDF/A-2, and PDF/A-3 documents.

  • veraPDF compatible


    Matches veraPDF behavior against the veraPDF test corpus as well as the Isartor test suite.

  • Fast


    page is an order of magnitude faster than veraPDF.

  • Lightweight


    Ships as an approximately ~8 MB binary, with zero runtime requirements.

  • Works anywhere


    Use it from the CLI, Rust, Python, or JavaScript.

Get started

$ page document.pdf --profile ua1 --format details
Result  : Non-conformant
Rules   : 1 failed rule / 104 total
Profile : PDF/UA-1
Time    : 0.017s

[ISO 14289-1:2014:7.18.1:2] Conformance: annotation 0 on page 1 has neither a non-empty /Contents entry nor a non-empty /Alt entry in its enclosing structure element
  Location: object 41 0 R (page 1)

Detailed reports show up to three locations per finding. Add --locations all to show every location, use --format json for a complete JSON report, or omit --format details for a summary. See the CLI reference.

You can use the page_validation crate to integrate into any existing Rust workflow:

use page_validation::{ValidationOptions, ValidationProfile, validate_pdf};

let options = ValidationOptions::default().profile(ValidationProfile::PdfUa1);
let report = validate_pdf("file.pdf", &options)?;

if report.is_compliant {
    println!("The document passed all checks.");
} else {
    for failure in &report.failures {
        eprintln!(
            "[{}] {}",
            failure.rule_id,
            failure.message,
        );
    }
}

You can use the page-validation Python package to integrate into any existing Python workflow:

import page

report = page.validate_pdf("document.pdf", profile="ua1")

if report.is_compliant:
    print("The document passed all implemented checks.")
else:
    for failure in report.failures:
        print(f"[{failure.rule_id}] {failure.message}")

Read a PDF as a Uint8Array and validate it in the browser with the WebAssembly-powered JavaScript package:

import { ValidationProfile, validatePdfBytes } from "page-validation-wasm";

const bytes = new Uint8Array(await pdfFile.arrayBuffer());
const report = await validatePdfBytes(bytes, { profile: ValidationProfile.PDF_UA_1 });

if (report.isCompliant) {
    console.log("The document passed all implemented checks.");
} else {
    for (const failure of report.failures) {
        console.log(`[${failure.ruleId}] ${failure.message}`);
    }
}