TCPDF set different headers for different pages in one document

后端 未结 8 626
终归单人心
终归单人心 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:32

    How about... have TCPDF generate pages with different headers as separate documents, and then use something to merge all those intermediate PDFs together to form the final document's pages (maybe even TCPDF itself can merge, I don't know)?

    A couple of "how to merge?" results:

    • Merge PDF files with PHP
    • Merge files into a single PDF using PHP/linux

提交回复
热议问题