diff --git a/src/fpdm.php b/src/fpdm.php index fb8627d..254578c 100644 --- a/src/fpdm.php +++ b/src/fpdm.php @@ -113,6 +113,8 @@ class FPDM { var $needAppearancesTrue = false; //boolean, indicates if /NeedAppearances is already set to true var $isUTF8 = false; //boolean (true for UTF-8, false for ISO-8859-1) + protected int $n = 0; + /** * Constructor * @@ -1123,7 +1125,7 @@ function _bin2hex($str) { $hex = ""; $i = 0; do { - $hex .= sprintf("%02X", ord($str[$i])); + $hex .= sprintf("%02X", ord($str[$i]??'')); $i++; } while ($i < strlen($str)); return $hex;