Skip to content
Bytevive

Your PDF may still contain its earlier versions

Some PDFs are saved by appending. Cut the file at each %%EOF and see the earlier page that is still in the bytes.

By the Bytevive team7 min read

A translucent sheet with a solid green rectangle over a thin red outline that still shows through

A PDF can be saved by appending. The first version stays where it was, including its cross-reference table and its %%EOF marker. The next save adds new objects, a new table, a startxref that points at that table, and another %%EOF. A reader uses the last table. The earlier bytes are still in the file.

That is why deleting a paragraph and saving does not always delete the paragraph from the bytes. It depends on whether the program rewrote the file or appended a change. Covering text with a white box is a third, worse case: the text is still a real object, and the box is just drawn on top. None of this is a promise that your file works that way. It is a reason to look.

Two saves, one file

Each picture is the file cut at a %%EOF marker and opened here with PDF.js. Nothing is uploaded. The sample draws a rectangle, then appends a second save instead of rewriting the first one.

Looking for end markers.

The sample is built on this page. The first save draws a red outline. The second save appends a green rectangle and a new page object that points at both drawings. Cut the file at the first %%EOF and PDF.js shows only the outline. Open the whole file and both shapes are there. The outline was not rewritten. It is the same bytes, earlier in the file. Drop your own PDF, up to 20 MB, and the lab cuts at each end marker it finds, up to four, and opens the first page of each prefix.

What an end marker does not prove

Two end markers do not mean the earlier page is a complete, honest snapshot of a document someone meant to keep. A producer can append in ways that do not leave a readable previous page. A missing or wrong startxref is a different failure, the one behind files that will not open at all. That structure is what PDF Repair checks in your browser (free account, nothing uploaded), and the longer guide is how to repair a corrupted PDF without uploading it.

If a prefix will not render, the lab says so instead of inventing a page. The pictures are the decoder’s output, not a reconstruction of deleted text.

Frequently asked questions

Does every PDF keep its old version?
No. Incremental save is one way to write a PDF. A program can also rewrite the whole file, and then the previous bytes are gone. The lab looks for more than one %%EOF. One end marker means this file does not carry an earlier save in this form.
Is the old text a security problem?
It can be. If you deleted a sentence by saving incrementally, the earlier bytes can still be in the file. Redaction that only covers the text with a box has the same shape of problem. A real redaction removes the content, it does not paint over it.
Does this page upload the PDF?
No. PDF.js opens the bytes in this tab. The lab stops at 20 MB and only renders the first page of each prefix, up to four end markers.
How can I tell whether my PDF was saved incrementally?
Open a copy in a plain text editor and search for %%EOF. More than one is a strong hint, and the lab does that search for you. It is a hint, not proof: a linearized file, the kind built for fast web viewing, can carry an extra end marker without a second edit.
How do I save a PDF so the earlier version is gone?
Write a new file instead of appending to the old one. A full save or a print to PDF of the current pages produces a file without the earlier revision in it. For text you meant to remove, use a redaction tool that deletes the content, then drop the result here and check that only one end marker is left.

Sources

Every claim, error message, price, and limit cited above comes from these pages, checked on November 30, 2026. If one has changed, tell us at support@bytevive.com and we’ll update the article.

  1. PDF Association: ISO 32000-2, file structure and incremental updates
  2. PDF Association: ISO 32000-2, clause 7 (file structure)
  3. Adobe: PDF 32000-1:2008 (incremental updates)
  4. Library of Congress: PDF, Portable Document Format
  5. Mozilla: PDF.js
  6. PDF.js source on GitHub

PDF won't open? Check it in your browser.

Free account, PDFs up to 300 MB. The file never leaves your device.

Repair a PDF, free

Other free tools: video, PDF, photo, Office, ZIP, and audio repair.