What is actually inside a PDF after you sign it

By Filewhisk Team Published

We took a signed PDF apart object by object. The signature is an image drawn onto the page, and that has consequences worth knowing.

Search for whether a signed PDF is legally binding and you get a wall of confident pages, most of them selling signing software, all of them answering a legal question. Almost none answer the mechanical one: when you draw your name on a PDF and download it, what is in the file?

We signed one and took it apart. Knowing what is actually in there tells you which documents this is fine for and which it is not — more usefully than another summary of the ESIGN Act.

Before and after

A five-page report, signed with a signature drawn by hand, then parsed object by object.

What we looked forBeforeAfter
File size37,417 B46,131 B
Image XObjects02
Do operators (draw an object onto the page)01
/Type /Sig — a cryptographic signaturenono
/ByteRange — what a signature coversnono
/FT /Sig — a signature form fieldnono
/AcroFormnono
Link annotations44 (kept)
Document info (title, dates, producer)presentkept
%%EOF markers11

The signature, in full

Signing added exactly one thing to the page's content stream:

q
1 0 0 1 214.2 278.698 cm
183.6 0 0 44.523 0 0 cm
/Image-7098480789 Do
Q

Save the graphics state, move to a position on the page, scale to 183.6 × 44.5 points, draw an image, restore. That is the entire signature. The two image objects it refers to are 1600 × 388 pixels: one holds 1,862,400 bytes of colour — exactly three bytes per pixel — and the other holds 620,800, exactly one byte per pixel, which is the transparency mask that keeps the paper around your pen strokes see-through.

So the signature is a picture, positioned on top of the page. The document does not “know” it has been signed. Nothing in the file connects the picture to a person, a time, or the bytes of the document it sits on.

What that does and does not give you

An electronic signature of this kind is legally recognised in most places — ESIGN and UETA in the United States, eIDAS in the EU — and courts accept drawn and typed signatures routinely. The usual requirements are about conduct, not cryptography: that you meant to sign, that you agreed to do it electronically, that the signature is attached to the record, and that the record is retained. A drawn signature on a PDF can satisfy all four.

What it cannot do is prove anything by itself, and the file shows exactly why:

That last point is not a flaw in any particular tool. It is true of every drawn or scanned signature on every PDF, including ones produced by expensive software, and it is true of the paper contract you posted, scanned and emailed. It is simply worth knowing before you send your signature to a stranger who asked for it.

Full rewrite, not an incremental update

Our output has one %%EOF: the document was written out fresh, and the pre-signature version is not inside it.

Desktop signing software usually works the other way, appending changes to the end and leaving the earlier version in place — which is what lets a reader show you signature history, and also what makes those files grow with every save. Both approaches are valid PDF. The practical difference: with an incremental file, the unsigned version can be recovered from the file you sent; with a full rewrite, it cannot. If that matters to you, it matters in both directions, so it is worth knowing which one you produced.

When a picture is not enough

Match the tool to the stakes. A drawn signature is genuinely fine for most of what people sign:

SituationA drawn signature
Consent forms, school and club paperwork, delivery notesFine
Internal approvals, timesheets, expense claimsFine
Routine agreements between parties who know each otherUsually fine
A contract you expect might be disputedUse a service with an audit trail
Property, mortgage, some wills and powers of attorneyOften requires witnessing or notarisation; check local rules first
Anything a regulator requires a qualified signature forNeeds a certificate-based signature

When the requirement is real assurance, what you need is a certificate-based digital signature — the kind that writes /Type /Sig and a /ByteRange into the file and binds your identity, the timestamp and the document's exact bytes together. That needs a certificate from an authority that has verified who you are. It is a different category of thing, not a better version of the same thing, and no browser-based tool — including ours — can produce one. We would rather say that plainly than let the word “sign” imply otherwise.

Practical notes

How this was measured

The PDF was signed in a real headless Chrome, with the signature drawn using actual mouse events rather than a synthetic image, and the downloaded file was analysed with a parser written for this article: it walks the object table, decompresses every stream, and reports what it finds. One detail cost us a false conclusion first time round — the library that writes these files packs most objects into compressed object streams, so a naive search of the raw bytes reports /Annots and the document info as “missing” when they are simply compressed. They are intact; the link annotations and document metadata in the table survive signing. The parser now expands object streams before reporting, which is why those rows read the way they do.

Tools used in this guide