Printing a fixed invoice header issue

I am facing an issue when printing an invoice document, and I’m not sure what is causing it.

I want the header to remain fixed at the top of each page, just like it appears in the “Sales Order”, Here how it looks

But this is the result I get when printing a “Sales Invoice”, No header in page 2 and the table look messy

There’s a limit on how high your header could be imposed by Chrome pdf drivers. This is 250px to be precise.

The best solution (and imo, the most future proof) would be to write a Custom Theme and reduce the header height to 250px at most.

1 Like

Is this something that can be edited with some coding in the footers or it has to be custom theme?

because custom themes disable the footers

You can in theory write a script to make changes to the invoice layout, however, you will have to query individual elements inside the printable-content area, which is difficult since the these elements have no classes or ids.

It is not impossible though, with enough persistence it can be done.