The old document template feature has been replaced with the new PDF Document Generation module from the appstore: https://marketplace.mendix.com/link/component/211553.
Probably the one you found already. You can add a header and footer but you need to do that with some styling and containers. But luckily there is also a widget in the appstore that helps you with that. Check out this one: https://marketplace.mendix.com/link/component/212764