PDF300

Compressing a Digitally Signed PDF Without Breaking It

Updated · 5 min read · By

You have a PDF that was signed with a digital signature, it is too big to send or upload, and the obvious move is to run it through a compressor. That move often works on the file size and quietly ruins the signature. Knowing why it happens makes it easy to pick a route that does not cost you the signed document.

The situation

A signed contract, approval form, or report arrives as a large PDF. You compress it, open the result, and the viewer now shows a warning such as "the document has been modified since it was signed" or the signature panel reports the signature as invalid. Or the signature seems to be missing altogether. The text and pages look identical, so it is natural to wonder what changed. The answer is that the visible content is not what the signature protects. It protects the exact bytes of the file.

Why compression and re-saving can invalidate a signature (the mechanism)

A digital signature in a PDF works roughly like this. When the document is signed, the software calculates a cryptographic fingerprint (a hash) of specific byte ranges of the file and stores that fingerprint, protected by the signer's credentials, inside the file. Later, a viewer recalculates the fingerprint over the same ranges and compares it with the stored one. If they match, the viewer reports that the covered content has not changed since signing.

Compression changes the bytes. A compressor typically re-encodes images, rebuilds internal objects, drops or rewrites metadata, and writes a new file structure. Even a tool that leaves every page looking the same has still rewritten the file, so the byte ranges the signature covered no longer contain what was signed. The fingerprints no longer match, and the viewer flags the signature. The same thing can happen with a plain "Save As" or a print-to-PDF, depending on the software.

Two terms are worth knowing, though the exact wording differs between viewers:

Neither type is designed to survive a file being rewritten by a compressor, and you should not assume a given tool will preserve a signature unless it says so and you have verified the result yourself.

How to tell whether your PDF is signed

The details depend on the viewer, so treat these steps as generic:

  1. Look for a banner or badge. Many viewers show a bar across the top of the document, or a small ribbon icon, when a document contains signatures.
  2. Open the signature panel. Look in the side panel, the View or Tools menu, or the document properties for an item named Signatures or similar. It usually lists each signer and a status.
  3. Click on the signature field in the page. A signed field often opens a details dialog showing who signed, when, and whether the document was changed afterward.
  4. Do not rely on how it looks. A picture of a handwritten signature pasted onto a page is not a digital signature. If there is no panel entry and no status, it is probably just an image, and the document can be compressed like any other.

What actually helps, by case

If a portal rejects a signed file for size, it is worth asking whether it accepts a different format or a link to the original instead of a rewritten file.

When you do have an unsigned version to shrink, PDF300 lets you enter a target file size and compresses to meet it. Small files can be processed in the browser so they never leave your device, and a server mode is available for higher-quality results. Compression rewrites the file, so run it on an unsigned copy. Do not expect it to keep a signature intact, and do not run it on the only signed original you have.

Checklist

FAQ

Will compressing a signed PDF always break the signature?

Not guaranteed in every case, but you should plan on it. Compression rewrites the file, and a signature covers specific byte ranges of the original, so a changed file will usually be reported as modified or invalid. Always open the result and check the signature status yourself before relying on it.

Can I just re-sign the compressed file myself?

Only if you are the person who is meant to sign. A new signature from you does not replace the original signer's signature, and it does not make the document the one they approved. If someone else signed, ask them to sign again, or ask the recipient whether a labelled copy is acceptable.

Is a smaller copy of a signed PDF acceptable to send?

It depends on who receives it and what they use it for. For casual reading, a clearly labelled reference copy is usually fine. Where the signature has legal or official weight, check with the relevant party first, because they decide what they will accept.

Written by LeDeuxions, an architect who built PDF300 after a 300 MB portal limit kept rejecting drawing sets. Figures quoted from third parties link to their source; sizes and reductions described as "typical" are estimates, not guarantees.