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?

3 answers

1 accepted

This widget could not be displayed.


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.

Stefani, any suggestion to this issue?

This widget could not be displayed.

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.  

Even I am having issues with the same . Did you figure that out?

I am having the same issue too. Could not get it to work.  Really appreciate some suggestion to resolve this issue. 

This widget could not be displayed.

I have successfully added a logo to the space and can export this to PDF for 1 or more pages.

- Link the logo to the back of any page in your space. Copy the location of this link

- In the PDF Space Export Title Page, Export Header, follow the instructions above and add your copied link the logo.

- To Export:  (the logo will only appear when you use the custom export option)

  • Space Settings --> Content Tools --> Export Tab --> Selected PDF and Next
  • Selected Custom Export
  • Selected only the Pages I wanted, then selected Export and downloaded the PDF
  • The logo appeared on each page

I managed to find out how to do this before your email. Nevertheless, appreciate your reply. Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday 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...

203 views 2 4
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