KeepLocalHubGet the app
Explore more

Home / Learn

Module 4: PDFs: size, scans, passwords and signaturesLesson 18 of 255 min read

PDF digital signatures explained: why any change breaks them

A signed PDF can look like any other file, but it behaves differently. Change one thing, even something as harmless as compressing it or removing a page, and the signature no longer checks out. This guide explains the difference between an electronic and a digital signature, how the lock works, what a PDF reader tells you about it, and a workflow that avoids nasty surprises. It describes the technology only; it is not legal advice.

Electronic signature or digital signature?

The terms are often mixed up. In EU law (the eIDAS regulation), an electronic signature is very broad: data in electronic form attached to or logically associated with other data, used to sign. The European Commission notes that typing your name under an email might qualify.

An advanced electronic signature must also be uniquely linked to the signatory and able to identify them, be created in a way the signatory keeps control of, and be linked to the document so that any later change is detectable. A qualified electronic signature adds a qualified signature creation device and a qualified certificate. According to the Commission, only qualified signatures are explicitly recognised across the EU as having the same legal effect as a handwritten one.

A digital signature is the cryptographic technique behind most advanced signatures: certificates and keys from a public-key infrastructure. A picture of your handwriting pasted onto a page is not one.

Rules vary

Which kind of signature a document needs depends on the document and on where it is used. Ask the organisation that will receive it.

How a digital signature locks the bytes

NIST's Digital Signature Standard describes the mechanism. The document is first reduced to a short, fixed-length fingerprint by a hash function. The signer's private key turns that fingerprint into the signature. Anyone can check it with the matching public key, which proves the content was not modified after signing.

One question remains: whose public key is it? That is what a certificate is for. It binds a person's or organisation's identity to a public key, and it is issued within a public-key infrastructure.

What happens inside a signed PDF

The signature records a byte range: the parts of the file it covers, leaving a gap where the signature itself is stored. To check it, a validator reads those bytes, calculates the hash, and compares it with the signed hash using the signer's public key. One changed byte gives a different hash.

What a reader tells you

When you open a signed PDF, the reader runs that check and reports the result. In broad terms there are three outcomes. The signature is valid and the signer's certificate is trusted: you usually see a green tick. The document was changed after signing: the reader flags it. Or the bytes match but the reader doesn't know the certificate's root, so it can't confirm who signed.

Look at the signature details, not only at the name printed on the page. Anyone can type a name; only the check tells you whether the file is the one that was signed.

Changes a signature can survive

PDF lets software add incremental updates: new data appended to the end of the file without touching the earlier bytes. That is how a second person can sign after the first, and the first signature's hash still matches. A careful reader still looks at what the update changed, and identifies the document as changed if the page content itself was modified.

Why merging, compressing or unlocking breaks it

Tools that merge, split, reorder, compress or unlock a PDF build a new file. The pages may look identical, but the bytes are different, so the hash no longer matches and the signature no longer validates. This applies to our tools too: editing or unlocking a signed PDF makes its signature fail, because the file changed. They don't add signatures either.

Smaller is not always better

If a portal limits file size and your document is signed, compressing it will break the signature. Ask whether the original can be sent another way, or get the document re-signed after compressing.

A safe workflow

The rule is edit first, sign last.

  • Put the pages in their final order, rotate and delete what you need, and combine files before anyone signs.
  • Check the finished document carefully, then sign it or send it for signature.
  • Keep the signed original exactly as received. Store it, don't re-save it.
  • If you need a different version later, make it from the unsigned source and sign again.
  • When you forward a signed file, send the original rather than a converted or compressed copy.

Get the page order, rotation and deletions final before the document goes for signature.

Organize PDF pages

Quick check

Three questions. Pick an answer to see why.

  1. You compress a signed contract to fit an upload limit. What will a reader most likely report?

    Show the answer

    Answer: The signature no longer validates, because the file's bytes changed Compression writes a new file, so the hash no longer matches the signed one.

  2. What does the certificate in a digital signature do?

    Show the answer

    Answer: Binds the signer's identity to the public key used to check the signature Without it you'd know the file is intact but not who signed it.

  3. Which order avoids breaking a signature?

    Show the answer

    Answer: Merge and reorder the pages, then sign Edits made before signing are part of what gets signed.

Rules change

File formats and official photo rules change. Each guide shows the date it was last checked; for forms and official photos, the authority's own page has the final word.

Sources

Last checked October 27, 2026

Free tools for files you have the right to use. Everything runs on your device; check important results (forms, prints, official photos) before you send them. Terms of use.