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 page except for the first. Any suggestions?
相关问题
- Correctly parse PDF paragraphs with Python
- Set BaseUrl of an existing Pdf Document
- How can I get all text from a PDF in Swift?
- Renaming named destinations in PDF files
- Write multiple lines of text in a flow with report
相关文章
- Python Sendgrid send email with PDF attachment fil
-
Is it bad to put elements within the <hea
- C# MVC website PDF file in stored in byte array, d
- How To Programmatically Enable/Disable 'Displa
- Identify which file has included some particular h
- How to reduce PDF file size programmatically in Ja
- Rendering plain text through PHP
- Search and replace placeholder text in PDF with Py
查看全部
Same issue, explained by a DOMPDF Project Member
https://github.com/dompdf/dompdf/issues/347
Worked for me, my first page is a cover (no header no footer)
You can do this by inserting the header and footer elements after the elements that appear in the first page.
For example :
Edit: added the style tag
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.