What is a hybrid-reference PDF file?
A hybrid-reference PDF is a PDF 1.5 or later file that combines objects referenced by conventional cross-reference tables and objects in object streams referenced by cross-reference streams within a single revision.
Identified by the XRefStm entry in the trailer dictionary, it supports compatibility with legacy PDF software that cannot read cross-reference streams (ISO 32000-2:2020, clause 7.5.8.4).
For example, page tree objects may use conventional references for display in older software, while logical structure objects in streams remain invisible to such applications. Not to be confused with PDFs that use both reference types across different revisions.
Not the same as a hybrid PDF
The names are similar, but they describe different things. A hybrid PDF is about content: a document that also includes a machine-readable copy of its data. A hybrid-reference file is about how a file indexes its own objects. Any PDF can use this indexing method, no matter what it contains.
Why a file uses this format
PDF 1.5 introduced cross-reference streams and object streams, which store a file's index and many of its small objects in compressed form. Software built for earlier PDF versions cannot read either of these.
A hybrid-reference file supports both types of software. A conventional cross-reference table lists everything older software needs to display the pages, and the XRefStm entry in its trailer points newer software to a cross-reference stream for the rest. Older software ignores that entry and never sees objects that exist only in the stream, such as a tagged structure tree, while current software follows both and sees the entire document.