I spent the good part of a sunday afternoon to play around with the Export to PDF function in Confluence, and this is my finished stylesheet. Inspired by various online sources…
body {
font-family: Arial, sans-serif;
}
*|h1 {
font-family: Arial, sans-serif;
font-size: 36pt !important;
}
*|h2 {
font-family: Arial, sans-serif;
font-size: 24pt !important;
}
*|h3 {
font-family: Arial, sans-serif;
font-size: 16pt !important;
}
*|h4 {
font-family: Arial, sans-serif;
}
.pagetitle h1 {
font-family: Arial, sans-serif;
font-size: 60pt !important;
margin-left: 0px !important;
padding-top: 200px !important;
page-break-after: always;
}
@page {
size: 210mm 297mm;
margin: 15mm;
margin-top: 20mm;
margin-bottom: 15mm;
padding-top: 15mm;
font-family: Arial, sans-serif;
.pagetitle
{
page-break-before: always;
}
@top-right {
background-image: url("wiki/download/attachments/123456/Logotype.png");
background-repeat: no-repeat;
background-size: 75%;
background-position: bottom right;
}
/* Copyright */
@bottom-left {
content: "Company INC.";
font-family: Arial, sans-serif;
font-size: 8pt;
vertical-align: middle;
text-align: left;
}
/* Page Numbering */
@bottom-center {
content: "Page " counter(page) " of " counter(pages);
font-family: Arial, sans-serif;
font-size: 8pt;
vertical-align: middle;
text-align: center;
}
/* Information Class */
@bottom-right {
content: "Information Class: Public";
font-family: Arial, sans-serif;
font-size: 8pt;
vertical-align: middle;
text-align: right;
}
/* Generate border between footer and page content */
border-bottom: 1px solid black;
}