Performance header and footer
In the phantom-pdf container using header and footer, the performance in the generation of the report from the API, has a difference of time:1000ms
Report generation without using header and footer time: 1350ms
Report generation using header and footer time: 2450ms
There is a lot of difference in performance, using only a page number in the header and a text in the foot
Please check the increase performance FAQ and come back if it won't help.