Skip to content
PDF Tool

PDF guides

PDF/A explained: what it is and when you need it

By Felix Stiffel · · 6 min read

A PDF made to be opened decades from now

PDF/A is a version of PDF made for long-term archiving. The A stands for archive. It is defined in the international standard ISO 19005, and its promise is simple: a PDF/A file has to look the same when it is opened decades from now, on software that does not exist yet, without any outside help.

A normal PDF does not guarantee that. It may rely on fonts that happen to be installed on your computer, colours that depend on a particular screen or printer, content that is loaded from the internet, or a password that someone has to remember. Each of these can fail in the future. PDF/A forbids them, or requires that everything needed is stored inside the file itself.

You usually meet PDF/A when an organisation asks for it: some courts, public authorities, archives and companies with legal retention duties require documents in PDF/A, often in a specific part and level. If you are asked for PDF/A, check which one, because they are not all the same.

Parts and levels in plain words

ISO 19005 has four parts, each based on a newer PDF version. PDF/A-1 (2005) is based on PDF 1.4 and is the strictest: no transparency, no layers, no embedded files. PDF/A-2 (2011) is based on PDF 1.7 and allows transparency, layers, JPEG 2000 images and embedded files, as long as those are PDF/A themselves. PDF/A-3 (2012) is the same as PDF/A-2 but allows embedded files of any type, which is how electronic invoices carry their machine-readable data inside a readable PDF. PDF/A-4 (2020) is based on PDF 2.0.

Within parts 1 to 3, a letter after the number gives the conformance level. Level b (basic) guarantees that the file will look right. Level a (accessible) adds the requirement that the document structure is tagged, so the text can be read aloud and reflowed in the correct order. Level u (Unicode, parts 2 and 3) guarantees that all text can be extracted as Unicode, so it can be searched and copied reliably. PDF/A-2b is a common choice when nothing more is specified.

What PDF/A requires and forbids

All fonts must be embedded. A PDF/A file may not rely on fonts installed on the reader's computer, because they may not exist later or may look different.

Colours must be device-independent. The file declares an output intent, usually an embedded colour profile such as sRGB, so a future viewer knows exactly what each colour value means.

No encryption. A password that nobody remembers would make the document unreadable, so PDF/A files cannot be password-protected.

No external content and no active content. Content loaded from a URL, JavaScript, and audio or video are not allowed, because none of them can be guaranteed to work in the future.

The file must identify itself. PDF/A files carry XMP metadata that names the part and level they claim to meet. Viewers and validators read this marker.

What a PDF/A export looks like: our test

We exported the same 20-page text report from LibreOffice twice: once as a normal PDF and once with the PDF/A-2b option. The normal PDF was 49,923 bytes. The PDF/A-2b version was 64,280 bytes, about 29 percent larger.

The extra bytes are the archive requirements. The PDF/A version contained an XMP metadata stream with the markers part 2 and conformance B, and an output intent with the sRGB IEC61966-2.1 colour profile. Both versions had their two fonts embedded, because LibreOffice embeds fonts in normal PDFs too. For documents with many fonts or colour images, the size difference will vary.

A marker is only a claim. Our check looked at what the file says about itself, not whether every rule is met. To verify conformance, use a validator such as veraPDF, an open-source PDF/A validator that tests a file against the rules of each part and level.

Everyday edits that quietly break PDF/A

The tricky part about PDF/A is not creating it, it is keeping it. Many PDF tools, including ours, are not PDF/A-aware: they produce valid, normal PDFs from a PDF/A input, and the archive properties are lost on the way.

We tested this with our own tools. We merged the PDF/A-2b report with a copy of itself using Merge PDF. The result had all 40 pages and both embedded fonts, but no XMP metadata, no PDF/A marker and no output intent. It had also lost the 10 bookmarks and the accessibility tags of the original. Compress PDF gave the same picture: 29,493 bytes, and no PDF/A marker, output intent, bookmarks or tags.

Adding text can break the font rule. Tools that stamp page numbers or watermarks often use one of the 14 standard PDF fonts, such as Helvetica, without embedding it, and our page-number and watermark tools do the same. In a test file written this way, pdffonts listed Helvetica as not embedded. A PDF/A file with such a stamp no longer meets the rule that all fonts must be embedded.

Password protection breaks PDF/A by definition, because encryption is not allowed.

So if a document has to stay PDF/A, do your editing first, in the original application if possible, and create the PDF/A as the last step. If you have to edit a PDF/A file, convert it to PDF/A again afterwards and validate the result.

How to create PDF/A

From an office program. LibreOffice has an Archive (PDF/A, ISO 19005) option in its PDF export dialog, where you can also pick the part. Microsoft Word offers a PDF/A compliant option in the options of its Save as PDF dialog. This is the most reliable way, because the program knows the fonts and colours of the original document.

From an existing PDF. Professional PDF editors and print tools can convert a PDF to PDF/A by embedding fonts, adding the colour profile and removing forbidden content. The result depends on the input: a font that is missing from the PDF and from your system cannot be embedded.

From a scan. Scanning software often has a PDF/A setting. For text documents, combine it with OCR so the archive copy can also be searched.

After creating the file, validate it once, especially if an authority will check it. A file that only claims to be PDF/A may be rejected.

Common misunderstandings

PDF/A is not a security feature. It does not stop anyone from editing or copying the file, and it cannot be password-protected.

PDF/A is not smaller. In our test the archive version was larger, because it carries fonts, colour profiles and metadata that a normal PDF can leave out.

PDF/A is not a special format that needs special software. Any PDF viewer opens it. The difference is in what the file is guaranteed to contain, not in how you read it.