Search, bookmark, and compare PDF objects
By Anton Samper · Reviewed
Find a value, bookmark the evidence, and pin an object to compare it with another. These tools leave the original PDF unchanged.
Choose what to search
Use Ctrl/Cmd+K to focus search, then choose a mode:
- Objects
- Find indexed objects by their number or description.
- Keys
- Find dictionary keys such as
MediaBoxorJavaScript. - Page text
- Find words extracted from the page, including text split across drawing instructions. Results are grouped by page. Select a text byte location to highlight matching source syntax in the original or decoded hex view, or open a labelled candidate stream when exact mapping is unavailable. Open page preview highlights the returned matches on the rendered page, even when byte mapping is unavailable.
- File text
- Search the original file bytes as text.
- File hex
- Find a sequence of hexadecimal byte values.
- Decoded streams
- Search text in supported decoded stream previews.
Try the A simple page sample: choose Keys, search for MediaBox, and select the matching page. Use Back and Forward in the workspace to retrace your inspection.
The first match opens automatically. Use the result counter and previous/next arrows to step through matches, wrapping at either end, or select a result directly. Results appear in a popover below the search field. Choosing a result reveals it in the workspace. Escape or clicking outside hides the popover without clearing the query; click the Results button or use Ctrl/Cmd+K to reopen it. Previous/next controls are in the results popover. Changing the search type immediately searches the current query again. From the search field, Down Arrow focuses the list; Up/Down moves through results and Enter chooses one. Results stop at 500; incomplete searches are labelled. File text treats the original bytes as Latin-1 text.
Page text source mapping currently supports common ASCII fonts and fixed-width ToUnicode character and range maps in direct page content streams. Source locations may differ from rendered reading order. Compressed content has exact decoded ranges, with only its containing stream highlighted in the original file. Scanned pages without text need OCR. For a step-by-step walkthrough, see how to find the source bytes behind text.
Decoded search checks only the first 256 KiB of each stream. It reads bytes as characters, rather than extracting the text shown on a rendered page. Compressed or encrypted content may not match a file-text search.
Why can a word be found without exact byte highlights?
Page text search and source mapping are separate steps. The page search engine can find words that our source mapper cannot yet trace to bytes. “Exact text bytes could not be mapped” means the selected stream has no mapped match. It does not mean the page search failed or the PDF is damaged.
Common causes include unsupported font encodings, text inside Form XObjects, spaces or reading order reconstructed from glyph positions, and incomplete stream inspection. The message alone cannot identify which cause applies. Check other source locations for Show bytes, or use Open page preview to inspect the page. Inspect content stream opens a candidate container; its highlight does not identify the word.
Compression or encryption alone does not prevent decoded byte mapping. When mapping succeeds, Decoded bytes highlights the matching source text, while Original bytes can highlight only its containing stream.
A visible word may be split across several strings: “lorem” can be stored as (lor) 17 (em), where the number adjusts spacing. In File text or Decoded streams, try a shorter fragment, then read the surrounding instruction. The Streams guide explains how to read these text and spacing instructions.
Save a finding
- Select an object or a byte range and click Bookmark.
- Add a note describing what you found.
- Select the bookmark to return to it, or use its trash button to delete it.
Bookmarks are saved in this browser and restored when you reopen the same PDF, even if it has been renamed. Changed files have separate bookmarks. The PDF and password are not saved. Clearing site data removes bookmarks; notes from encrypted PDFs remain readable in browser storage. See privacy and browser storage.
If browser storage is unavailable, bookmarks remain usable for the current file and a status message explains that they are not saved.
Compare two objects
- Select a page or object, then click Pin to compare.
- Select another object to compare its dictionary values with the pinned one.
- Choose differences only to narrow the comparison, or unpin to close it.
For a PDF with several pages, compare /MediaBox, /CropBox, /Rotate, and resource references. Missing page entries may inherit values from a parent in the page tree. Comparison checks dictionary values; it does not compare stream bytes or original syntax.
Drag the horizontal divider, or focus it and use the arrow keys, to resize the comparison. Closing or replacing the PDF clears the pin.