PDF/Universal Accessibility (ISO 14289)

This standard ensures accessibility for people with disabilities who use assistive technology like screen reader software.

In order to make your PDF accessibility friendly, you must follow some standards as you would do when producing accessibility friendly HTML documents.

A good starting point for that are the accessibility guidelines provided by mozilla.org.

We highly recommend running your PDF using a tool like Adobe Acrobat or PDF Accessibility Checker (Free) to verify your PDFs are fine.

Also check out the Web Accessibility Evaluation Tools List from W3C to verify your HTML.

Feel free to get in touch with us if you are having trouble with your PDF, we are happy to help.

Add meta tag to identify your document to support PDF/UA standard.

By default, Typeset.sh does not automatically add the XMP identification that marks your PDF as user agent-friendly, even if it is. This is because it requires manual effort from the author to validate the PDF and ensure everything is in order. By including the following meta tag in the head of your document, Typeset.sh will add the appropriate XMP identifier.

<meta name="WCAG" content="2.1">

Then make sure to save the PDF as PDF/A.

$html = <<<HTML
<!DOCTYPE html>
<html lang="en">
        <meta charset="UTF-8">
        <meta name="WCAG" content="2.1">
        <title>Hello World</title>
        Hello World, I am a <strong>UA conform</strong> pdf!

$service = new \Typesetsh\HtmlToPdf();
$service->saveHandler['pdf_a'] = new \Typesetsh\HtmlToPdf\A_1B_Web();

$result = $service->render($html, \Typesetsh\UriResolver::all());

Last updated