2014-01-30 18 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 –