It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
Answer accepted


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?

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. 

Having the same problems..... Any suggestions? Please.

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
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,844 views 15 38
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you