Can two identical-looking PDFs contain different saved form values?

3 November 2026

A person holds a pen beside a printed form at a sunlit desk.
Illustrative photograph. Cropped and resized. Photo by Kampus Production on Pexels. · Pexels License

Yes. In a local test, two one-page PDFs produced byte-for-byte identical page images, yet a fresh process reading their form fields recovered different strings. A screenshot would not distinguish the two exports. To check a form before sharing it, inspect what the form stores as well as what the recipient sees. Test results.

What the two copies contained

We made two harmless test forms using ReportLab 4.4.9. Both displayed the same public reference. Each carried a text field named private_trial with its hidden flag set. The only change we deliberately made to the input was the disposable field value. We rendered both documents at 96 dpi with Poppler and compared the raw raster bytes. A separate pypdf 6.10.0 process then reopened the saved PDFs and read the field again. Replay code · Separate readback.

CopyVisible page at the tested settingsStored value on reopen
Version AIdentical to version BDISPOSABLE-A
Version BIdentical to version ADISPOSABLE-B

The page-image hashes matched. The PDF hashes differed. Neither hash by itself told us the field name or value. Reading the field dictionary supplied that evidence. This is a deliberately simple test of one hidden field on one render path. Your form, viewer and export settings require their own check.

How to test a form someone else will receive

Use an expendable version of the real form layout. Choose one visible field the recipient should retain and one field whose test value must not travel. Enter recognisable disposable strings. Record the field name, intended handling and allowed recipients before exporting a fresh copy. Record the stored-value inspection and the recipient’s reopen separately.

Have a second reviewer open the delivered copy without the source application’s working session. Check the visible fields and inspect stored values with an authorised tool. Record the exact file digest, each field name, expected value, recovered value, whether it was visible and the decision. If the form must stay fillable, verify that the approved fields still accept and retain input.

If the visible page is blank but the unwanted value survives in the inspected data, hold the copy. The form owner can remove the field or create an authorised derivative, then send that exact version back for the same tests. An earlier metadata-cleanup experiment examined author, subject, annotations and attachments on a fixture with no form fields. Its successful metadata checks cannot substitute for this test. Before-and-after inspection · Experiment record

Part of the Check PDF metadata and hidden content before sharing guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).