Why a digital signature breaks when you merge, compress or edit a PDF

Guide · updated 21 November 2026

The short answer: a digital signature seals the exact bytes of the file at the moment it was signed. Merging, compressing, splitting or editing writes a new file with different bytes, so the seal no longer matches and a PDF reader reports the signature as invalid, or finds no signature at all. No tool can merge or compress a signed PDF into a new file and keep the signature valid, because detecting any such change is exactly what the signature is for. Do all the preparation first and sign last. If documents are already signed, send them as they are, separately or in a ZIP.

What a digital signature protects

A certificate-based digital signature has two parts. A certificate, issued to the signer by a certification authority, says who signed. A cryptographic fingerprint of the document, taken when it was signed and locked with the signer’s key, says what was signed. When you open the file, the reader takes a new fingerprint and compares the two. If one byte of the signed part has changed, they differ, and the reader warns that the document was modified after signing.

That is the whole point of it. A government certificate, a signed contract or a court filing is trusted because anyone can check that nobody altered it. The signature cannot tell a harmless change, such as smaller images, from a harmful one, such as a different amount. It only knows that the bytes changed.

This is different from a picture of a signature placed on the page, which is a simple electronic signature. A picture can be moved, copied or deleted by anyone, and proves nothing about whether the document changed. How to sign a PDF explains both kinds.

Why every tool breaks it

A PDF can be extended after signing by appending to the end of the file, leaving the signed bytes untouched. That is how a second person can add a signature without breaking the first, and how a reader can allow form filling the signer permitted. A reader then validates the original signature and shows what was added afterwards.

Merging, compressing and splitting do not work that way. They take the pages and write a new document from them: merging puts pages from several files into one, compression re-encodes the pictures, splitting copies pages into new files. The signed bytes no longer exist in the result. Depending on the tool, the visible stamp of the signature may still appear on the page, but it is then only a drawing, with nothing behind it that a reader can verify.

Every tool on this site that changes a PDF works this way, including Merge PDF, Compress PDF, Split PDF, Sign PDF and conversions such as PDF to PDF/A. The same is true of printing a signed PDF to a new PDF.

The right order: prepare, then sign last

When you are the one producing a document that will be digitally signed, do everything that changes the file before the first signature:

  1. Assemble the document: merge the parts with Merge PDF, put pages in order with Organize PDF, add page numbers and fill in form fields.
  2. Check the size against the limit where it will be uploaded, and compress now if it is too large. Compressing to an exact size covers portal limits.
  3. Read the final version from start to finish. After this point, any change means signing again.
  4. Apply the digital signature with your certificate provider or signing service.
  5. If others sign too, each signs the same final file in turn, and nobody runs it through another tool in between.

What Sign PDF on this site does

Sign PDF places a drawn or typed signature as an image at the bottom of one page, and Request a signature collects one from someone else the same way. Both make a simple electronic signature. Neither adds a certificate, and neither can create a digital signature. Because the file is rewritten when the image is added, signing a PDF here that already carries a digital signature from someone else leaves that signature unverifiable. If a document needs a certificate-based signature, use a provider that issues one, and add any image signature or other changes before it, not after.

When signed documents have to go together

Portals often ask for one file where you hold several signed ones, or set a size limit a signed certificate exceeds. This happens, for example, with signed certificates downloaded from government portals and then uploaded to an exam or application portal. Options, in the order to try them:

Before you choose, check what the receiving office expects. Some accept a merged copy for reading and verify signatures only on request; others reject a file whose signature fails.

Checking whether a signature still holds

A PDF reader with signature validation, such as Adobe Acrobat Reader, shows in its signature panel whether each signature is valid and whether the document was changed after signing. In Brazil, the government’s free Validar service checks ICP-Brasil signatures and those made on the gov.br platform. Check if a PDF was edited on this site reports how many signatures a file has and whether the last one covers the file to its end, but it does not validate the certificate.

Can I merge PDFs without removing the digital signature?

No. Merging writes a new file, so the signatures of the original documents can no longer be verified in it. Send the signed files separately or in a ZIP, or ask the issuer for a combined signed document.

Can I compress a digitally signed PDF?

You can make it smaller, but the smaller file has no valid signature. If a portal limit forces the issue, ask the issuer for a smaller signed copy, or ask the portal whether it accepts the signed original by another route.

Why does my PDF say the signature is invalid after I edited it?

The reader compared the document with the fingerprint taken at signing and found a difference. Go back to the signed original, or sign the edited version again.

Does Sign PDF create a digital signature?

No. It places an image of your signature on the page, which is a simple electronic signature with no certificate. If you need a certificate-based signature, use a provider that issues one.

Bundle signed files in a ZIP