Page Title in Header in PDF Export Edited

How could I get the page title in the header on each page. So far, I've got this:

.pagetitle h1 {
position: running(runningheader);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
}
@page:first {
@top-left {
content: element(runningheader);
}
}
@page {
@bottom-left {
content: "Company Name";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
}
@bottom-right {
content: "Page " counter(page) " of " counter(pages);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
}
/* Generate border between footer and page content */
border-bottom: 1px solid black;
}

But this takes away the title from the first page (which I don't want it to do) and adds the header to only the first page. I need the header to be on all the pages.

1 answer

As mentioned at https://community.atlassian.com/t5/Confluence-questions/Single-Page-PDF-Export-with-Title-Page/qaq-p/611537 the "position: running(runningheader)" moves (not copies!) the content to another element.

The only workaround is to use this approach for either the first page or the the header and use an additional dummy element for the other one.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,901 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you