diff --git a/src/Smalot/PdfParser/Font.php b/src/Smalot/PdfParser/Font.php index 0bccf58f..415fbcc1 100644 --- a/src/Smalot/PdfParser/Font.php +++ b/src/Smalot/PdfParser/Font.php @@ -248,7 +248,9 @@ public static function decodeHexadecimal($hexa, $add_braces = false) $parts = preg_split('/(<[a-f0-9]+>)/si', $hexa, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); foreach ($parts as $part) { - if (preg_match('/^<.*>$/', $part) && false === stripos($part, '$/s', $part) && false === stripos($part, ''); if ($add_braces) { $text .= '('; diff --git a/tests/Integration/FontTest.php b/tests/Integration/FontTest.php index 1873f39e..3d4c79e7 100644 Binary files a/tests/Integration/FontTest.php and b/tests/Integration/FontTest.php differ