X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Ftcpdf.php;h=eec95ee9509fc7c5aa662e184795e751e90facea;hb=39d66301fbc4346e2a3978d4a4ce034dc0fc0a1c;hp=60d9e39a518784dc68cf321cb5e23ba374b62f99;hpb=2595c5a25aa6364ba603efae6760d25defde7b1f;p=fa-stable.git diff --git a/reporting/includes/tcpdf.php b/reporting/includes/tcpdf.php index 60d9e39a..eec95ee9 100644 --- a/reporting/includes/tcpdf.php +++ b/reporting/includes/tcpdf.php @@ -177,6 +177,17 @@ require_once(dirname(__FILE__)."/barcodes.php"); */ require_once(dirname(__FILE__)."/html_entity_decode_php4.php"); +// +// Check image file format against specific TCPDF engine requirements. +// +function check_image_file($filename) +{ + $test = new TCPDF(); + if ( !$test->Image($filename, 0, 0) ) + return _('Unsupported image file format.'); + return ''; +} + if (!class_exists('TCPDF')) { /** * define default PDF document producer @@ -3707,6 +3718,7 @@ if (!class_exists('TCPDF')) { } } $this->endlinex = $this->img_rb_x; + return $info; } /**