Confluence PDF export customization

  1. Using Confluence 5.5.3, Documentation Theme.


I am trying to export a Confluence page from the page level (Tools > PDF Export) not from Space Operations.

I used the documentation provided on


I have been trying multiple settings at the space level (not global) to use both PDF Layout and PDF Stylesheet together, to customize my title, header and footer, but nothing works.


The only way I was able to add something to the header and the footer was to add content (using the "content" parameter) to the PDF Stylesheet, and leave the PDF Layout totally empty.


Here is what works so far. Content under the PDF Style sheet (at the space level).


margin: 0.5in;
padding: 1em;



{ background-image: url(download/attachments/27886202/MO-Logo-Tag-WB-small.gif?api=v2); background-size: 100px; background-repeat: no-repeat; background-position:center center; page-break-inside: avoid; } 


{ content: "<<ProjectName>> Phase <<Phase #>> Monthly Status Report - <<Month>> <<Year>>"; font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif; font-size: 8pt; } 


{ content: counter(page) " of " counter(pages); font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif; font-size: 8pt; } 



I would very much like to be able to use the PDF Layout as well.


2. Also, as a side note, if you could help me create a foot note with multiple lines, that would solve my problem. So my question is, how to insert a line break in the footer content.

4 answers

Hi Adriana,

this seems to cause confusion over and over again.

In very short:
There are "page exports" (A) and "space exports" (B) and there is "PDF Layout" (1) and "PDF Stylesheet" (2).

And the "logic" is:

  • Both (1) and (2) will work for (B)
  • Only (2) will work for (A)

And this is exactly what happens to you:
You make (A) and whatever you enter at (1) will be ignored.


What can you do now to create title, header and footer?

  • If you want to use "PDF Layout": Then do that but give up with "page export" (as you do so far) and use a "space export" instead 
  • If you want to use "page exports": Then do that but give up with "PDF Layout" and use "PDF Stylesheet" instead. Create headers and footers with the "content" element (as you described), title pages are not possible with that method


Thank you, @Steffen Heller.

How about my second note, regarding the new line (multiple lines) in the "content" parameter. How can I get the footer or header on multiple lines.

That is a CSS topic. Do a research about e.g. css content line break and then try out what confluence supports. (I didn't get it to work.)

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,927 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