LLION/ PDF, print & document engineering

PDF/A, PDF/X, PDF/UA and PDF/E

LLION Editorial · Updated

PDF itself is permissive. A conforming file may reference fonts it does not carry, run JavaScript, embed video, link to resources on the network, and encrypt its contents. Each of those is a problem for somebody: an archivist in twenty years, a press operator at two in the morning, a screen-reader user today. The subset standards answer by taking the full specification and adding requirements and prohibitions for one purpose. A PDF/A file is still a PDF; it is a PDF that promises not to do certain things and to carry certain information.

All of these standards are ISO documents and the texts are paywalled. This page follows the public summaries (the Library of Congress format registry, the PDF Association's publications, Wikipedia's tables, the Ghostscript and veraPDF documentation) and says so where a detail could not be checked against the normative text.

What a subset standard is#

Each standard is defined relative to a base version of PDF (PDF 1.4, ISO 32000-1, or ISO 32000-2) and consists of three kinds of clause: things a conforming file shall contain (embedded fonts, an output intent, XMP identification), things it shall not contain (encryption, external references), and tighter rules for things the base specification leaves loose (how metadata must agree, which colour spaces may appear). Conformance is a property of the file, not of the producer: a file is PDF/A-2b if it meets every clause of ISO 19005-2 at level b, whatever wrote it.

Timeline of PDF versions with the subset standards attached to the base version each builds on PDF 1.32000 PDF 1.42001 PDF 1.62004 ISO 32000-1PDF 1.7, 2008 ISO 32000-2PDF 2.0, 2017/2020 X-1a:2001X-3:2002 A-1 (2005)X-1a:2003X-3:2003 X-4 (2008)E-1 (2008)VT (2010) A-2 (2011)A-3 (2012)UA-1 (2012) A-4 (2020)X-6 (2020)UA-2 (2024) Each subset standard inherits everything from its base version and then restricts it. A PDF/A-2 file is therefore a valid PDF 1.7 file; a PDF/A-4 file is a valid PDF 2.0 file.
The subset standards and the PDF version each one builds on. Years are the first publication of each part.

How a file declares conformance#

A conforming file identifies itself in its XMP metadata stream, which is why every one of these standards requires XMP. Each family has a small identification schema:

XMP identification entries (abridged)HTML
<rdf:Description rdf:about=""
    xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/"
    xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/">
  <pdfaid:part>2</pdfaid:part>
  <pdfaid:conformance>B</pdfaid:conformance>
  <pdfuaid:part>1</pdfuaid:part>
</rdf:Description>

PDF/A uses pdfaid:part and pdfaid:conformance; PDF/UA uses pdfuaid:part. PDF/X files carry a version string such as PDF/X-4 under GTS_PDFXVersion, historically in the Info dictionary and in the pdfx XMP schema (the PRONOM record for PDF/X files shows that key), with a dedicated pdfxid schema in the X-4 and later parts. Tools such as Acrobat read these entries to display "This file claims compliance with PDF/A-2b".

Claims is the right word. The identification says what the producer intended; nothing in the file proves it. Validators exist because the claim and the content disagree often enough to matter, and an archive that accepts files on the strength of pdfaid:part alone will eventually hold files that are not PDF/A at all.

PDF/A: archiving (ISO 19005)#

PDF/A exists so that a file opened decades from now renders the same way without anything from outside the file. Its core prohibitions follow from that: no encryption, because a lost password is a lost document; no JavaScript or launch actions; no audio or video; no references to external content; no fonts that are not embedded, including the fourteen standard fonts that ordinary PDF 1.7 lets a viewer supply; device-independent colour, via ICC profiles or an output intent; and XMP metadata that agrees with the Info dictionary where both exist.

PDF/A parts. Years are first publication; levels are the conformance levels each part defines.
PartStandardBaseLevelsWhat changed
PDF/A-1ISO 19005-1:2005PDF 1.4a, bThe original. Also forbids transparency, LZW compression, JPEG 2000 and embedded files, because PDF 1.4 could not express them well or at all.
PDF/A-2ISO 19005-2:2011ISO 32000-1a, b, uAllows transparency, layers (optional content), JPEG 2000, OpenType font embedding, PAdES signatures, and embedding of other PDF/A files. Adds level u.
PDF/A-3ISO 19005-3:2012ISO 32000-1a, b, uIdentical to A-2 except that any file type may be embedded. The basis of electronic-invoice formats that attach XML to the PDF.
PDF/A-4ISO 19005-4:2020ISO 32000-24, 4f, 4eBuilt on PDF 2.0. No a/b split: structure requirements moved to PDF/UA. 4f allows embedded files; 4e allows 3D, rich media and JavaScript for engineering documents and supersedes PDF/E-1. Drops the Info dictionary.

The levels answer different questions. Level b (basic) guarantees visual reproduction: what is on the page will render. Level u (Unicode) adds that every character of text maps to Unicode, so the file can be searched and its text extracted reliably. Level a (accessible) adds a complete logical structure: tagged PDF, reading order, alternate text for images. Level a is the hardest to produce from existing documents because tags cannot be invented after the fact without a person checking them, which is why most archives specify A-2b or A-2u and reserve A-2a for documents produced with accessibility from the start.

Two PDF/A rules trip up otherwise careful producers. The metadata rule: PDF/A requires the XMP packet, and if the Info dictionary is also present its values must match the XMP values; PDF/A-4 resolves the problem by removing the Info dictionary. And the font rule: embedding is not enough, the embedded program must be legally embeddable and must actually contain every glyph the content uses.

PDF/X: print exchange (ISO 15930)#

PDF/X exists so that a file handed to a printer behaves predictably on the press. Its requirements are about colour and geometry rather than longevity: every font embedded; an output intent that names the printing condition (and, for anything beyond a registered condition, carries the ICC profile); the page boxes that define the product, meaning a TrimBox or ArtBox on every page and a BleedBox when bleed is used, with each box inside the next (see page boxes); and no active content, so no form fields, signatures, comments, sounds or movies, and no annotations inside the printable area.

PDF/X parts in use. ISO 15930 part numbers do not follow the X numbering; the table gives both.
StandardISO 15930 partBaseColourTransparency and layersTypical use
PDF/X-1a:2001Part 1 (2001)PDF 1.3CMYK and spot onlyno (flattened)Blind exchange with any printer; still demanded by many
PDF/X-3:2002Part 3 (2002)PDF 1.3Adds colour-managed RGB and Lab with ICC profilesnoColour-managed workflows in Europe
PDF/X-1a:2003, PDF/X-3:2003Parts 4 and 6 (2003)PDF 1.4as abovenoRevisions of the 2001/2002 parts
PDF/X-4Part 7 (2008, 2nd edition 2010)PDF 1.6Colour-managed CMYK, grey, RGB, spotyes, live transparency and optional contentCurrent default for most print production
PDF/X-4pPart 7PDF 1.6as X-4yesOutput-intent profile referenced externally
PDF/X-5g, 5pg, 5nPart 8 (2008, 2010)PDF 1.6extends X-4 and X-4pyesExternal graphical content, external profiles, n-colourant profiles
PDF/X-6, 6p, 6nPart 9 (2020)ISO 32000-2as X-4 familyyesPDF 2.0 generation; adoption still limited

PDF/X-2 (Part 2, then Part 5) allowed external references and was withdrawn. The choice between X-1a and X-4 is usually made by the printer, not the designer: X-1a forces transparency to be flattened and colour to CMYK before the file leaves your machine, which removes two classes of surprises at the cost of fidelity, while X-4 preserves live transparency and colour management for a RIP that can handle them. RGB versus CMYK covers the colour side of that decision.

PDF/UA: accessibility (ISO 14289)#

PDF/UA exists so that assistive technology can read a document the way a sighted reader does. ISO 14289-1 was published in 2012 and lightly revised in 2014; ISO 14289-2, PDF/UA-2, was published in March 2024 on the basis of PDF 2.0, alongside a free companion specification (WTPDF) from the PDF Association.

The requirements are mostly about structure rather than appearance: all meaningful content tagged, with the tags reflecting real semantics (headings, lists, tables with header cells); a logical reading order; alternative text for meaningful graphics and artifacts marked as such for decorative ones; text that maps to Unicode; fonts embedded; colour and contrast never the only carrier of meaning; no security settings that block assistive technology from extracting text (see the accessibility permission bit on the encryption page); and no inaccessible JavaScript. PDF/UA complements WCAG rather than replacing it, and the PDF Association's Matterhorn Protocol turns the standard into 31 checkpoints and 136 failure conditions that tools and auditors use.

PDF/UA is the standard most often combined with another: PDF/A-2a plus PDF/UA-1 is the normal specification for an accessible archive, and the PDF Association publishes guidance on conforming to both at once.

PDF/E and PDF/VT#

PDF/E-1 (ISO 24517-1:2008, based on PDF 1.6) is the engineering profile: construction drawings, manufacturing documents, geospatial data, with large page sizes and the possibility of 3D content. For PDF 2.0 it is superseded by PDF/A-4e, which is why new engineering archives specify A-4e rather than a second part of PDF/E.

PDF/VT (ISO 16612-2:2010) is the variable-data and transactional printing profile, built on PDF/X-4 (and PDF/X-5 for the VT-2 variant), adding the document-part metadata that lets a press driver cache shared content across thousands of personalised statements. PDF/VT-1 is self-contained; VT-2 allows external graphical content; VT-2s is the streaming form.

Choosing a standard#

Which profile to specify. Where two are given, the first is the safer default.
You need toSpecifyWhy
Archive documents for the long termPDF/A-2b, or PDF/A-2u if text extraction mattersA-1 forbids features modern producers use; A-3 invites arbitrary attachments the archive must then also preserve; A-4 tooling is still young
Archive documents that must be accessiblePDF/A-2a with PDF/UA-1Level a and UA share the structure requirements; validate both
Attach machine-readable data to an archived document (e-invoices)PDF/A-3bThe only part that permits non-PDF embedded files, which is what those formats rely on
Hand a job to a printerPDF/X-4, unless the printer specifies PDF/X-1aX-4 keeps transparency and colour management live; X-1a is the lowest common denominator
Deliver documents to the public with accessibility obligationsPDF/UA-1 today; PDF/UA-2 as support maturesMaps to WCAG expectations; UA-2 requires PDF 2.0 readers
Exchange engineering drawings with 3DPDF/A-4eSupersedes PDF/E-1 for PDF 2.0
Send variable-data print jobsPDF/VT-1Built on X-4; VT-2 only if the press workflow supports external references

Can one file conform to two standards? Yes, when their rules do not conflict: PDF/A and PDF/UA are designed to combine, and PDF/A-1b with PDF/X-1a, or A-2b with X-4, is a recognised if uncommon combination in publishing workflows that need both an archival and a print-ready copy. The file then carries both identifications and must pass both validators.

Validating#

Identification can be written by anyone; validation checks the content. The tools differ in scope and cost.

  • veraPDF is the open-source validator developed with the PDF Association for PDF/A (all parts and levels) and PDF/UA. It is the reference implementation for PDF/A and runs from the command line or a GUI: verapdf --flavour 2b file.pdf reports every failed rule by clause number.
  • Acrobat Pro Preflight validates and can convert to PDF/A, PDF/X and PDF/UA, and is the de-facto reference on the print side.
  • callas pdfToolbox and the server products built on it validate and convert in automated workflows; most print shops' preflight is callas or Enfocus PitStop underneath.
  • Ghostscript can produce PDF/A-1, A-2 and A-3 at level b (-dPDFA=1|2|3 with the PDFA_def.ps definition file and an ICC profile) and PDF/X-1 and X-3 (-dPDFX). Two caveats from its own documentation: the pdfwrite device re-creates the file by interpreting it, so structure, tags and bookmarks may not survive, which rules it out for level a and for PDF/UA; and -dPDFACompatibilityPolicy decides what happens to content that cannot be made compliant, with the default (0) keeping the content and producing a non-compliant file with a warning. Set it to 1 to drop the offending feature or 2 to abort.
Shell
# Validate as PDF/A-2b and as PDF/UA-1 with veraPDF
verapdf --flavour 2b report.pdf
verapdf --flavour ua1 report.pdf

# Convert to PDF/A-2b with Ghostscript (level b only; output is re-interpreted, not edited)
gs -dPDFA=2 -dBATCH -dNOPAUSE -sColorConversionStrategy=RGB -sDEVICE=pdfwrite \
   -dPDFACompatibilityPolicy=1 -sOutputFile=out.pdf PDFA_def.ps in.pdf

A conversion is not a validation. After any conversion, run the validator on the result; after any later edit, run it again, because a single save in a non-conforming editor (a new font, an annotation, a rewritten Info dictionary) is enough to break the claim while leaving the identification in place.

Sources