From 4f319cea75ef409b57738caa5006374451694abf Mon Sep 17 00:00:00 2001 From: james Date: Wed, 23 Feb 2011 22:33:30 +0000 Subject: [PATCH] tcpdf supports png's internally as well, and png's give better color results in the final pdf (see simcoe county logo!) --- tcpdf.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpdf.inc.php b/tcpdf.inc.php index 700368f..be7f466 100644 --- a/tcpdf.inc.php +++ b/tcpdf.inc.php @@ -58,7 +58,7 @@ class pdf extends TCPDF { * PDFs use JPG internally, so we should feed it a jpeg, if we dont', tcpdf will * convert it to a jpg anyway, and that takes FOREVER if there's lots of * pages/labels.*/ - $this->SetHeaderData($conference['id'] . '-logo-500.jpg', 16 /* mm */, + $this->SetHeaderData($conference['id'] . '-logo-500.png', 16 /* mm */, i18n($conference['name']), i18n($report_name)); // set header and footer fonts @@ -400,7 +400,7 @@ class pdf extends TCPDF { global $config; $img_dir = $_SERVER['DOCUMENT_ROOT'].$config['SFIABDIRECTORY'].'/data'; /* Scale image to proportinally fit in w x h */ - $this->Image("$img_dir/logo.jpg", $this->lMargin + $x, $this->tMargin + $y, + $this->Image($img_dir."/".$conference['id']."-logo-500.png", $this->lMargin + $x, $this->tMargin + $y, $w, $h, '', '', '', true, 300, '', false, false, $show_box ? 1 : 0, true); }