X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Ftcpdf.php;h=0d3d210844778657df5a846ceb3617f2b86d11b6;hb=5d023098e6b5a31416949f00c66ffa28ed3cb589;hp=71fb75effc11f697cbfef7883ca58747fff74373;hpb=de2da4b73a8505f8e6032bb04b26d859339c89f4;p=fa-stable.git diff --git a/reporting/includes/tcpdf.php b/reporting/includes/tcpdf.php index 71fb75ef..0d3d2108 100644 --- a/reporting/includes/tcpdf.php +++ b/reporting/includes/tcpdf.php @@ -1,4 +1,4 @@ -4527Image($filename, 0, 0) ) + return _('Unsupported image file format.'); + return ''; +} + if (!class_exists('TCPDF')) { /** * define default PDF document producer @@ -613,7 +624,7 @@ if (!class_exists('TCPDF')) { * @var Header font. * @access protected */ - var $header_font; + var $header_font = array('helvetica', '', 12); /** * @var Footer font. @@ -1124,7 +1135,8 @@ if (!class_exists('TCPDF')) { mb_internal_encoding("ASCII"); } // set language direction - $this->rtl = $this->l['a_meta_dir']=='rtl' ? true : false; + + $this->rtl = @$this->l['a_meta_dir']=='rtl' ? true : false; $this->tmprtl = false; //Some checks $this->_dochecks(); @@ -3520,6 +3532,8 @@ if (!class_exists('TCPDF')) { function unichr($c) { if (!$this->isunicode) { return chr($c); + } elseif ($c == '') { + return ''; } elseif ($c <= 0x7F) { // one byte return chr($c); @@ -3704,6 +3718,7 @@ if (!class_exists('TCPDF')) { } } $this->endlinex = $this->img_rb_x; + return $info; } /**