Hi Alex,
Yes it is easy to change the invoice format - first you need to identify if you are using portrait or landscape invoices - you can choose in the configuration. If you are using landscape invoices then you need to look at the script:
includes/PDFTransHeader.inc - at line 10:
Code:
$pdf->addJpegFromFile($_SESSION['LogoFile'],$Page_Width/2 -120,$YPos-40,0,60);
All you need to do is edit this line as necessary for your logo. (If you are using the portrait invoice then you need to be looking at includes/PDFTransPageHeader_Portrait.inc - which is very similar)
What is happenning is that the pdf class function $pdf->addJpegFromFile() (in the file includes/class.pdf.php) is being used to place the logo on the invoice. This function takes the following parameters:
addJpegFromFile($img,$XPos,$YPos,$Width=0,$Height=0,$Type='')
Where $img is the file name of the logo image as a .jpg
$XPos is the X - horizontal position of the logo accross the page - where 0 is the far left of the page and 842 is the far right edge (if your page is A4 landscape - it is 595 if the invoice is portrait). By taking $Page_Width/2 -120 this is putting the logo 120 over to the left of centre. As $Page_Width/2 is the centre of the page. The units are pdf points.
$YPos is the Y - vertical position of the logon up the page - where 0 is the very bottom edge and 595 is the very top (for A4 landscape). The script keeps track of where it is in a variable also called $YPos so it is putting the logo 40 points below the current position of $YPos.
By entering a number of $Height - this sets the height of the logo and the width is recalculated based on the same aspect ratio. In the default script we entered a number for $Width of 60 and the $Height is recalculated (as we entered a zero). If you set the $Height and $Width the apect ratio is altered.
When you have made alterations to any script, you need to keep a copy elsewhere so you have a record of any scripts you have altered - so when you upgrade you know what you need to do to have the system sing for you.
There is a bug with the SelectAsset.php script - I will resolve this over the coming weekend and Exson will do a new release once a couple of such issues have been resolved.