Is it possible to add images to the header or the footer when exporting pages to a pdf file?

I'm trying to add an image to the header of a pdf file when exporting the pages of a space. I've tried the code below in the PDF layout section with no success.

<div style="margin-top:10mm">
<img src="/download/attachments/12346/header-image.png"/>
Also, I've tried to add the image by adding some code to the PDF Stylesheet section (as seen below) and referencing it in the PDF layout section . Failed again.
  1. #images
  2. {
  3. width:100%;
  4. height:100%;
  5. background: url("http://confluence/download/attachments/21071879/header-image.png") no-repeat;
  6. }
Is that a bug on Confluence? I'm currently running Confluence 5.2.3. Am I doing something wrong?

2 answers

1 accepted

0 vote


By default, the items in the header only apply when you export the space itself and not the pages inside of it. The information at Advanced PDF Export Customizations should be helpful in adding what you are needing.


Stephen Brannen | Confluence Support

Thanks. I'll check out the link you mentioned.

I tried to follow instructions from Advanced PDF Export Customizations page and I believe Stefani followed the instructions (just as I have) from this page and applied the code in the PDF layout tab.  I tried this with no success and was not able to see the image displayed in the header, when I exported the specific page.  

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...

370 views 20 10
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