如何在PHP中的FPDF中的页脚添加图像



我尝试在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");
    }

请帮助,如何在fpdf中的页脚中添加图像

预先感谢

使用$ this-> gety()用于函数图像中的设置高度

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

甚至

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

最新更新