As I need to format a document that is going to be printed, and it is generated as PDF through the platform: How can I make the header and footer of the document repeat every page, regardless of the content?

And if the content is a table, how can I avoid breaking the row from one page to another?