From e737d0d10fdb0d5de55e82fcba05bb3b2c390346 Mon Sep 17 00:00:00 2001 From: Mike Fox Date: Wed, 14 Dec 2022 09:41:16 +0000 Subject: [PATCH] Fix https://github.com/myokyawhtun/PDFMerger/issues/53 --- tcpdf/tcpdi_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdf/tcpdi_parser.php b/tcpdf/tcpdi_parser.php index faf2a27..6761df7 100644 --- a/tcpdf/tcpdi_parser.php +++ b/tcpdf/tcpdi_parser.php @@ -500,7 +500,7 @@ protected function decodeXrefStream($startxref, $xref=array()) { $v = $sarr[$key]; if (($key == '/Type') AND ($v[0] == PDF_TYPE_TOKEN AND ($v[1] == 'XRef'))) { $valid_crs = true; - } elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1] >= 2))) { + } elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1]) >= 2)) { // first object number in the subsection $index_first = intval($v[1][0][1]); // number of entries in the subsection