viewhack

See what a PDF hides

A PDF carries more than its pages: who wrote it and with which program, files tucked inside it, JavaScript, instructions to open a web address or launch a program, form values, and every earlier version if it was edited and saved again. Drop one here to see all of it, each finding in one plain sentence, before you open it in a reader.

The file is read on your device by this tab. It is not uploaded, and nothing in it is run or followed.

What it shows

How a PDF keeps its earlier versions

The PDF standard (ISO 32000, section 7.5.6, “incremental updates”) lets a program save changes by appending them: the new and changed objects go at the end of the file, followed by a new cross-reference table, a trailer that points back to the previous one (/Prev) and another %%EOF line. Nothing before is removed, so cutting the file after an earlier %%EOF gives back the earlier version, text that was “deleted” included. viewhack follows that chain of trailers from the last startxref to the first and counts the links. A linearized (“fast web view”) file is written with two sections from the start, and that is not counted as an edit.

A signature works the same way. Signing appends a signature dictionary whose /ByteRange lists two stretches of the file, everything before and after the signature’s own /Contents, and the signature vouches for exactly those bytes. If more was appended after signing (a second signature, a filled-in field, or an edit), the ranges stop short of the end of the file, and this page says by how many bytes and versions.

For example, the IRS Form W-9 (Rev. March 2024) as downloaded from irs.gov reads as: 6 pages, PDF 1.7, made with Designer 6.5, three document-level scripts (Adobe’s reader version checks), 23 form fields, changed once after it was first saved, and that change is a usage-rights signature by “ARE Production V8.1 G3 P24 1007685” (Adobe Reader Extensions, which lets Adobe Reader save the filled-in form) covering the whole file, its SHA-1 digest matching.

What this cannot do

To read the pages themselves, use the “Open it in a new tab” button: every browser has a PDF viewer built in. Adobe Illustrator files (.ai) are PDFs too and open in the Illustrator viewer.