Customize PDF export via CSS (standard confluence feature)
One can easily customize the export for the generic pages using the PDF Stylesheet configuration of Confluence cloud.
Technical details can be found here: https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html
Sample code snippet used to tune pages from this space.
.first-page-title { content: "PDF Export Tools"; font-size: 35pt!important; color: #3b7fc4; } .pagetitle h1 { position: running(runningheader); font-size: 10pt!important; color: #3b7fc4; } div.toc{ width: 160mm; } div.toc a{ font-size: 10pt!important; } div.toc a::after { content: leader('.') target-counter(attr(href), page); color: #3b7fc4; } div.toc ul{ list-style-type: none; } @page { /*The A4 paper size is 210 mm wide by 297 mm long*/ size: 210mm 297mm; border-top: 1px solid #3b7fc4; border-bottom: 1px solid #3b7fc4; @top-left { content: element(runningheader); font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif; font-size: 10pt!important; margin-bottom: -10px; color: #3b7fc4; } @top-right { content: " PGAConsult"; color: #3b7fc4; font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif; font-size: 10pt!important; text-align: right; margin-bottom: -10pt; } @bottom-center { content: "Page " counter(page) " of " counter(pages); /* This is the content that will appear in the footer */ font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif; font-size: 8pt; color: #3b7fc4; margin-top: -10px; } /* Any other page-specific rules */ } /*All other settings*/ a { text-decoration:none; } div.titlepage,div.toc { page:title; } img { page-break-inside: avoid; -fs-fit-images-to-width:6in; }