简体   繁体   English

如何在php中的fpdf中向页脚添加图像

[英]How to add an image to the footer in fpdf in php

I tried to add image in footer of html2fpdf class. 我试图在html2fpdf类的页脚中添加图像。

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");
    }

Please help , how to add image in footer in fpdf 请帮助,如何在fpdf中的页脚中添加图像

Thanks in Advance 提前致谢

use $this->GetY() for set height in function Image 使用$ this-> GetY()在函数Image中设置高度

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

or even 甚至

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM