projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show also Upcoming Purchase Invoices - in Dashboard. Fixed.
[fa-stable.git]
/
reporting
/
includes
/
tcpdf.php
diff --git
a/reporting/includes/tcpdf.php
b/reporting/includes/tcpdf.php
index 01d15527f598cb1bd827d563cc2af5180ebdee6f..0d3d210844778657df5a846ceb3617f2b86d11b6 100644
(file)
--- a/
reporting/includes/tcpdf.php
+++ b/
reporting/includes/tcpdf.php
@@
-1,4
+1,4
@@
-
4527
<?php
+<?php
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
@@
-177,6
+177,17
@@
require_once(dirname(__FILE__)."/barcodes.php");
*/
require_once(dirname(__FILE__)."/html_entity_decode_php4.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
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.
* @access protected
*/
- var $header_font;
+ var $header_font
= array('helvetica', '', 12)
;
/**
* @var Footer font.
/**
* @var Footer font.
@@
-3707,6
+3718,7
@@
if (!class_exists('TCPDF')) {
}
}
$this->endlinex = $this->img_rb_x;
}
}
$this->endlinex = $this->img_rb_x;
+ return $info;
}
/**
}
/**