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

后端 未结 3 2030
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:17

    Because when you set header, header will appear of every page of the document, you can use div element to hide header from first page. Div with white background color and z-index greater then header and you will put that div on the top of the page and set position exactly over first page header.

    I have tested this and its worked. I wish this will help.

提交回复
热议问题