TCPDF - Header image only displays on first page

前端 未结 3 868
谎友^
谎友^ 2021-01-19 03:16

I am using TCPDF to generate a 2 page pdf document.

I have added a header and a footer to the document. The text part of the header and footer shows up correctly on

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-19 04:01

    I solved this by using base64 encoded string like this:

    $image = base64_encode(file_get_contents('path_to_image'));
    

    Then you can use it like this:

    
    

提交回复
热议问题