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

This widget could not be displayed.

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
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

627 views 8 6
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