TCPDF set different headers for different pages in one document

后端 未结 8 638
终归单人心
终归单人心 2021-02-08 04:50

Is there a way to have a different header logo for the 1st page in a document and different for the 2nd page?

I thought that changing the header data between adding page

8条回答
  •  情话喂你
    2021-02-08 05:40

    my solution, with just a condition

     function Header(){
        if($this->page==1){
           $html = '
    '; $this->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); }else{ $html = '
    '; $this->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); } }

提交回复
热议问题