forked from science-ation/science-ation
tcpdf supports png's internally as well, and png's give better color results in the final pdf (see simcoe county logo!)
This commit is contained in:
parent
ac334f2534
commit
4f319cea75
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user