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); }