Skip to main content
Language: English

Digital signatures · Published

Several signatures on one PDF: why the second doesn’t break the first

How a PDF can carry the digital signatures of two or three people without any of them invalidating the others: incremental updates, the /ByteRange, which changes are allowed after signing, and why an app that rewrites the file does break them.

Most two-party agreements end the same way: one side signs, emails the PDF, and the other side signs too. Which raises a fair question: if a digital signature detects any change to the document, and adding a second signature means writing to the file, why doesn’t the second signature invalidate the first?

The answer lies in how a PDF is saved and in exactly what each signature covers. Both are defined in ISO 32000, the standard for the PDF format.

What a signature covers: the /ByteRange

A digital signature in a PDF doesn’t sign “the document” in the abstract. It signs specific bytes of the file, and the signature dictionary itself says which ones, in an entry called /ByteRange: four numbers marking two stretches of the file. The first runs from the start of the file to the gap reserved for the signature value; the second, from the end of that gap to the end of the file.

Everything inside those two stretches is reduced to a cryptographic fingerprint, a hash, and that hash is what your certificate signs. The only thing left out is the gap itself, because a signature can’t contain itself. The standard says the range should be the entire file except the signature value, and warns that other ranges “do not check for all changes to the document” (ISO 32000-1, section 12.8.1, in the public copy Adobe hosts).

To validate, software recomputes the hash of those same bytes and compares it with the signed one. If they match, what was signed is intact.

Incremental updates: writing at the end

The trick is that a PDF can be changed without touching what is already written. ISO 32000 calls this an incremental update (section 7.5.6): changes are appended to the end of the file, leaving its original contents intact. Each round gets its own end-of-file marker and points back to the previous one. A PDF signed three times is, underneath, an original with three layers stacked behind it.

When the second signature arrives, it is written as a new revision at the end. The bytes covered by the first signature’s /ByteRange are exactly where they were, so its hash still matches. The standard says so in a note: when a signed document is modified and saved by incremental update, the data in the original signature’s byte range is preserved, and the document can be recreated as it was when signed.

That is why Acrobat can show you both. In the Signatures panel, select a signature, open Options and choose Compare Signed Version to Current Version (Adobe’s help). The signed version is still whole, inside the same file.

A matching hash isn’t enough: which changes are allowed

This is the part that tends to get skipped. Appending protects the first signature’s bytes, but the new layer could hold anything: another signature, yes, but also a block of text covering a figure, or a replaced page. The first signature’s hash would still match, because the new material sits outside what it covers, and yet what you see on screen would no longer be what was signed.

So a good validator runs a second check. It looks at what changed in the later revisions and decides whether each change is acceptable. Signing afterwards is. So is filling in a form field left for that purpose, or appending the validation material of a long-term signature (the PAdES levels explain what that is). Changing what a page says is not.

Whoever creates a document can also write down what is allowed afterwards, with a certification signature. It comes in three levels, and it gets its own article next week. When a document isn’t certified, nobody has written that down, and each validator applies its own judgement. That is one reason two validators can disagree about the same PDF.

Why an app that rewrites the file does break it

Some apps don’t append when they save. They read the PDF, rebuild it in memory and write the whole thing out again, with objects in a different order and at different offsets. The page can look identical, but the bytes it covered are no longer where it left them, and the hash stops matching.

We measured exactly this with Preview on macOS 27.0, on 14 October 2026: opening a validly signed PDF and saving it without changing anything was enough to turn the signature invalid. Preview did the same to a document certified with no changes allowed. If you don’t know how an app saves, don’t use it to save a signed document.

How PDFsigna handles it

Everything PDFsigna writes into a PDF goes in as an incremental revision — a signature, an annotation, a filled-in form, a visual signature — and always into a new copy next to the original, which is never overwritten. How it works has the details.

If the document already carries signatures, the signing panel says so before asking you for anything, and tells you where yours will fall: “It already has one signature: yours will be the second.” Open a PDF with several signatures and each one’s validation card says what it covers. On the first signature of an agreement signed by two people, you’ll read that it “covers its revision: the document grew afterwards, which is normal with several signatures.”

When a document isn’t certified, PDFsigna accepts these changes after a signature: another signature, a timestamp, validation material, filling in fields that weren’t locked, and new annotations that leave the page content alone. When what was added doesn’t fit that list, PDFsigna doesn’t call the document tampered with. It says “Validity can’t be confirmed”, which is not the same as invalid and uses none of the colours of the five legal levels. One example: drawing a visual signature onto a page that someone has already digitally signed, without a certificate behind it. It changes what the page shows, and the app warns you before doing it.

When a PDF with several signatures lands in your inbox

Validate the whole thing and read each signature on its own. A first signature that checks out, with a note that the document changed afterwards, is usually exactly what a two-party agreement should look like. What matters is the reason given for each result. How to do that for free with the European Commission’s DSS demo, Spain’s VALIDe or Acrobat is in how to check whether a PDF signature is valid.

PDFsigna for Windows is on the Microsoft Store, and the Mac version is on the Mac App Store.

This article was written with the help of artificial intelligence.

← All articles