Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/PDFUtilFnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,16 @@ public static function get_xref_1_4(&$_buffer, $xref_pos, $depth = null) {

// Get the trailer object
$trailer_obj = PDFUtilFnc::get_trailer($_buffer, $trailer_pos);
if (isset($trailer_obj['XRefStm'])) {
$xrefstm_pos = $trailer_obj['XRefStm']->get_int();
[ $xrefstm_table ] = PDFUtilFnc::get_xref_1_5($_buffer, $xrefstm_pos, $depth);

foreach ($xrefstm_table as $oid => $val) {
if (!isset($xref_table[$oid])) {
$xref_table[$oid] = $val;
}
}
}

// If there exists a previous xref (for incremental PDFs), get it and merge the objects that do not exist in the current xref table
if (isset($trailer_obj['Prev'])) {
Expand Down