Refactor pdf rendering to allow to group HTML files, add a footer and banner