Skip to content
Advertisement

How to add Header and Footer in the created PDF file in php

I am using this site as reference: http://www.ros.co.nz/pdf/

I read the readme.pdf but haven’t found any function that instructs how to add header and footers in every page in the pdf.

Advertisement

Answer

Edited after long time:

Finally adding answer about latest version of R&OS PDF with the help of this example.

JavaScript

What about using dompdf:

Try this for header and footer:

You can add images and shapes (line, rectangles, etc.) to every page using PDF ‘objects’. A PDF object captures all rendering commands as a sort of template that can then be added to multiple pages:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement