2014-01-30 21 views
0

我試圖在html2fpdf類的頁腳中添加圖像。如何在fpdf的頁腳中添加圖像php

function Footer() { 
     //This is the footer; it's repeated on each page. 
     //enter filename: phpjabber logo, x position: (page width/2)-half the picture size, 
     //y position: rough estimate, width, height, filetype, link: click it! 
     $this->Image("uploads/footer.jpg", (8.5/2)-1.5, 9.8, 3, 1, "JPG", "http://www.abc.com"); 
    } 

請幫幫忙,如何提前加入圖像中頁腳fpdf

感謝

回答

3

函數圖像使用這個 - $>傑蒂()用於設定高度

$pdf->Image($image1, 5, $pdf->GetY(), 33.78); 

或甚至

$pdf->Image($image1, 5, null, 33.78); 
+0

這不適用於FPDF版本1.7 –