From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:PDF" |
|---|
| claim | "A trailer (or xref stream dictionary) /Prev holds the byte offset of the previous xref section, and /XRefStm in a trailer points to a cross-reference stream of a hybrid file; an /ObjStm needs /N and /First, and its decoded data begins with N pairs of object number and offset before the objects." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "PDF 1.5+" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "reading the xref chain" |
|---|
| effect | "newest xref section first, /XRefStm read before following /Prev; object stream header parsed as N integer pairs" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "/XRefStm and /Prev handling" |
|---|
| repo | "https://github.com/qpdf/qpdf" |
|---|
| commit | "4eba95899886e851cc41d76886483b347612f2a8" |
|---|
| path | "libqpdf/QPDF_objects.cc" |
|---|
| lines | "862-884" |
|---|
|
| type | "source" |
|---|
| detail | "object stream /N /First and the header token loop" |
|---|
| repo | "https://github.com/qpdf/qpdf" |
|---|
| commit | "4eba95899886e851cc41d76886483b347612f2a8" |
|---|
| path | "libqpdf/QPDF_objects.cc" |
|---|
| lines | "1751-1800" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Incremental update chain and object streams" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:42:37.768Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:13:46.118Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read qpdf QPDF_objects.cc at the cited commit: /XRefStm read first (unless ignore_xref_streams) then /Prev followed; object stream needs integer /N and /First and parses N integer pairs in the header." |
|---|
|
|
|---|