dompdf: How to add header on every page except first?

后端 未结 3 1926
Happy的楠姐
Happy的楠姐 2021-01-18 06:55

I\'m using dompdf to generate a PDF. I\'ve grabbed the code from the dompdf website to add a Header to the pdf and it\'s working, but I would like to put the header on every

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-18 07:31

    You can do this by inserting the header and footer elements after the elements that appear in the first page.

    For example :

    
    
    
    Some big title
    my header

    The content

    Edit: added the style tag

提交回复
热议问题