Content is moved from the second page to the first after applying styling to the footer and exporting to PDF format