From: <rc...@us...> - 2013-08-27 15:22:37
|
Revision: 6301 http://sourceforge.net/p/web-erp/reponame/6301 Author: rchacon Date: 2013-08-27 15:22:34 +0000 (Tue, 27 Aug 2013) Log Message: ----------- Minor changes: add comment. Modified Paths: -------------- trunk/includes/PDFTransPageHeaderPortrait.inc Modified: trunk/includes/PDFTransPageHeaderPortrait.inc =================================================================== --- trunk/includes/PDFTransPageHeaderPortrait.inc 2013-08-27 09:13:48 UTC (rev 6300) +++ trunk/includes/PDFTransPageHeaderPortrait.inc 2013-08-27 15:22:34 UTC (rev 6301) @@ -9,6 +9,7 @@ $YPos = $Page_Height - $Top_Margin; +// Company Logo $pdf->addJpegFromFile($_SESSION['LogoFile'],$Page_Width/2 -118,$YPos-60,0,35); $FontSize =15; @@ -21,11 +22,12 @@ // Prints page number $FontSize = 10; -$pdf->addTextWrap($Page_Width-$Left_Margin-72, $YPos-$FontSize, 72, $FontSize, _('Page').' '.$PageNumber, 'right'); +$YPos -= $FontSize; //Downs one line height mesure (addText position is from left-bottom). +$pdf->addTextWrap($Page_Width-$Left_Margin-72, $YPos, 72, $FontSize, _('Page').' '.$PageNumber, 'right'); $XPos = $Page_Width - 265; -$YPos -= 95; +$YPos -= 85; /*draw a nice curved corner box around the billing details */ /*from the top right */ $pdf->partEllipse($XPos+225,$YPos+67,0,90,10,10); |