Add header or footer to existing pdf files

Hello Team,
I want to add the footer to existing pdf files. I have a lot of files and I want to make them dynamic. I want to load pdf files from the directory and add the footer into it. is this possible using mPdf?
Thanks & Regards
Usman

@usman12

Please read the following article about adding header and footer to existing PDF.
Add Header and Footer to PDF