2014-01-30 2 views
0

html2fpdf의 바닥 글에 이미지를 추가하려고했습니다.fpdf의 꼬리말에 이미지를 추가하는 방법

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

기능 이미지에 설정된 높이 $ this->을 GetY()를 사용

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

또는 심지어

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

FPDF 버전 1.7에서는 작동하지 않습니다. –

관련 문제