Page 1 of 1

Invoice logo

Posted: 07 Sep 2008, 01:32
by wogand
Hi Jan,

great work with this amazing addon!

Do you know how I can adjust the logo size on the invoice? My logo is 100x60 pixels but the when I look in the invoice the logo is bigger and stretched causing this to overlap the delivery adres fields.

Thanks for your help and great work!

Re: Invoice logo

Posted: 07 Sep 2008, 21:25
by Jan
Hi, try to change the following code:

Code: Select all

$this->Image($hD['logo'],20,15,70);
on line 81 + -
in phoca.tcpdf.php

Jan

Re: Invoice logo

Posted: 07 Sep 2008, 22:08
by wogand
thanks Jan, that worked as a charm! :twisted:

Re: Invoice logo

Posted: 08 Sep 2008, 21:03
by Jan
Great to hear it, Jan

Re: Invoice logo

Posted: 18 Feb 2010, 00:34
by klikaklika
Hi, may be I am too stupid, but if i edit anything from this:
$hD = $this->headerData;
$this->Image($hD['logo'],20,15,50);
$this->SetX(-107);
$this->SetFont($hD['font'],'B',15);
$this->Cell(80,10, $hD['vmTitle'],1,0,'L');
$this->Ln(10);
$this->SetX(-107);

And save it, then if i click on the button PDF - it write me:
TCPDF error: Some data has already been output, can't send PDF file

Can anyone write me what exactly edit to edit logo size?

A ted cesky jelikoz vim ze se tady pohybuje Jan.

Jde o to ze jakkoliv upravim hodnoty ktere se na tomto foru dvakrat vyskytuji, tak po uprave a ulozeni se mi PDF faktura neotevre ale napise se error. Nechapu v cem to vezi... :(
Je pravda ze presne nechapu ktere cislo co znamena (jakoze ktere je sirka , vyska, a treti?) ale at upravim jakoukoliv hodnotu tak to hodi error. :( prosim o pomoc.

Re: Invoice logo

Posted: 18 Feb 2010, 21:21
by Jan
Jestli do toho nevstupuje nějaká chyba, např. nějakej fatal error :-( to by šlo možná vidět v error logu :idea: