Aspic
PDF/A-1b · 2b · 2u · 3b

Preserve any PDF as valid PDF/A.

Aspic rewrites a PDF so it meets the archival standard: it embeds the fonts, matches every glyph width, fixes colour, metadata, forms and annotations, and leaves the pages looking the way they did. Every claim on this page was checked with veraPDF, the PDF Association's reference validator.

99.5%of 1,039 government PDFs pass veraPDF
89.7%Ghostscript, same files, same validator
0.07 smedian time per file
Drop PDFs here

or click to choose files

Converted in this tab. Your files are not uploaded.

E-invoice:

Measured, not promised

Two public corpora, every file converted and then judged by veraPDF 1.28. "Unchanged" means the first pages render the same before and after (poppler, under 0.5% of pixels different). Ghostscript ran its documented PDF/A recipe on the same files.

ConverterCorpusPasses veraPDFPasses and looks unchanged
AspicGovDocs1, 1,039 real government PDFs99.5%
76.1%
Ghostscript 10.07GovDocs1, same files89.7%
53.6%
Aspicpdf.js test suite, 1,108 broken and unusual PDFs93.4%
83.0%
Ghostscript 10.07pdf.js test suite, same files89.9%
66.7%

Of the government PDFs whose fonts were already embedded, every one renders unchanged. The rest never had their fonts embedded, so no file holds the original shapes: Aspic embeds a metric-matched substitute, and the reference renderer improvises its own, which is where the remaining pixel differences come from. Method and per-file results are in the repository.

Fonts

Embeds what was never embedded

Finds the font on the machine or embeds a metric-matched substitute, rebuilds TrueType, Type 1 and CFF programs so widths and glyphs match, and removes characters that could only ever draw a blank box.

Colour

Keeps colours where they were

Adds an output intent and device-independent colour spaces, using a CMYK profile that reproduces what viewers already show, and repairs broken embedded ICC profiles.

Structure

Repairs damaged files

Rebuilds broken cross-reference tables, decrypts (with your password), removes JavaScript and actions the standard forbids, and draws appearances for annotations that had none.

Factur-X · ZUGFeRD · XRechnung

Turn an invoice into an e-invoice

Germany and France now require structured e-invoices, and the hybrid format is a PDF/A-3 with the invoice XML inside. Give Aspic your invoice PDF and its CII XML: it converts the PDF, embeds the XML with the right relationship, and writes the Factur-X metadata schema, detecting the profile (Minimum to Extended, or XRechnung) from the XML.

# PDF/A-3b with the invoice embedded
aspic convert invoice.pdf --facturx factur-x.xml -o e-invoice.pdf

# any other attachment, with its AFRelationship
aspic convert report.pdf --attach data.csv:Source -o report-a3.pdf
# one file
aspic convert scan.pdf -o scan-pdfa.pdf

# a whole folder, all cores, searchable text
aspic convert ./inbox -o ./archive --level u

# what was fixed
aspic convert in.pdf -o out.pdf --report
Command line · Rust library · WebAssembly

The same engine everywhere

One Rust engine runs this page, the command line on Linux, macOS and Windows, and your own code as a library. No Java, no Ghostscript, no server. It is open source under the AGPL; a commercial licence lets you ship it inside closed-source products and services.

Source and releases on GitHub

Pricing

One-off prices. No subscriptions, no accounts: you get a key you paste in, checked on your own machine.

Free

£0
  • Every PDF/A level in this browser tab
  • Files up to 10 pages, one at a time
  • Command line and library under the AGPL
Convert a file

Pro

£79 one-off
  • Unlimited pages
  • Batch: drop a whole folder of PDFs
  • Factur-X / ZUGFeRD e-invoices and attachments
  • Every update in version 1
Buy Pro

Commercial

£490 one-off
  • Use the engine in one closed-source product or hosted service, free of AGPL obligations
  • Command line, library and WebAssembly builds
  • Includes Pro
Buy a commercial licence

Already bought? Enter your key · Lost your key? · 14-day refunds, no questions.

Questions

What is PDF/A, and which level do I need?

PDF/A (ISO 19005) is the archival form of PDF: everything needed to show the document is inside the file, so it opens the same in decades. Choose 2b unless someone asks otherwise. 2u also guarantees the text can be searched and copied. 1b is for older systems that only accept PDF/A-1. 3b allows attached files and is the basis of Factur-X and ZUGFeRD e-invoices.

How do you know the output is valid?

Every result on this page comes from veraPDF, the open-source validator the PDF Association and the PDF/A Competence Center endorse. The benchmark scripts and corpus lists are in the repository so anyone can rerun them.

Will my document look different?

Not if its fonts were embedded: in our tests every such file rendered the same. If a font was never embedded, the original shapes aren't in the file at all; Aspic embeds the same font from your system when it can, and otherwise a substitute with the same widths, so lines break in the same places.

Are my files uploaded?

No. The converter runs in your browser tab as WebAssembly; the page never sends your documents anywhere.

What can't it do?

It doesn't produce the accessible "a" levels, which need a tagged structure tree written by a person or a model. It doesn't run OCR. Files that need a password open only when you give it. JPEG 2000 images can't go into PDF/A-1.