Confluence export template


is there any possibility to edit the PDF-Export of confluence? For documentations we would like to create a template with a logo and some copyright information to reduce manual efforts..

11 answers

1 accepted

4 votes
Answer accepted


You can edit the PDF Layout and Stylesheet on both Confluence Admin and Space Admin levels. Just go to *Confluence Admin > Look and Feel > PDF Layout/PDF Stylesheet*, or *Space Admin > Look and Feel > PDF Layout/Stylesheet. Refer to this documentation for more details and examples of customizations.

Hope this helps!

Thanks a lot!


I tried use some of the code I found here:

But it doesn't affect the PDF-export. (Global) Obviously I'm doing it wrong, but I have no idea why :(

Is it enough to just copy and paste the code or do I have to type some additional tags. (Like "<html>" </body>" etc.

I would appreciate any help!


What do you want to do:
Create a template, customize the PDF stylesheet or customize the PDF layout?
These are different things that must be treated differently.

Bascially, the page you mentioned explains it all.
Perhaps you could just try to explain what you want to do, what you tried and where you got stuck.

Hi Steffen,

basically we want to do some minor changes. We will need a Title page with some information, a Logo in the Header and a footer with page numbers. We also want to use a certain font.

I stucked already at the title page :( I used the code from the page:

And inserted them in the title page section but it had no affect to the exported PDFs. My CSS knowledge is very limited so I would appreciate any help.

@Achim: Start with something very simple

Create a title page:

  • Browse > Space Admin > Look and Feel > PDF Layout
  • Click Edit and enter some html

Export your pages:

  • Browse > Advanced > PDF Export

Is is possible that you entered some html that had no effect? Or did you export with Tools > Export to PDF instead?

Hi Steffen,

I tried it that way a few times but it did not work. I also tried to enter something in the footer but I cannot see it in the export as well.

Maybe my entries don't get saved? Do I have to confirm my entries seperately?

Edit: I also have only temporary admin rights. Do you think this could be the reason?

Do I have to confirm my entries seperately?

You click "Edit" to open the input field, make your changes and then you click "Save" to save the changes.

What exactly did you enter?

What are temporary admin rights?

Ok that's exactly what I did...

I entered the code in the title page section from the page you and Dora posted:

<div class="fsTitlePage">
<img src="/download/attachments/590719/titlepage.png" />
<div class="fsTitle">owpvweopvmwepovmwepovmwepoivm</div>

I also entered the copyright information in the footer and the CSS for the title page in the stylesheet:

margin-left: auto;
margin-top: 50mm;
margin-right: auto;

font-size: 42px;
font-weight: bold;
margin: 72px 0 4px 0;

There is an information that I have only temporary admin rights and that I can end the admin membership when it's not needed anymore. I don't know if that affects the changes that I make...

When I do exactly that I get a PDF with a first page that shows a big "owpvweopvmwepovmwepovm

That is weird. I see only the standard PDF like it has always been. No title page and no footer :(

When you go back to Browse > Space Admin > Look and Feel > PDF Layout is your html text still there?

And did you really export with Browse > Advanced > PDF Export and not with Tools > Export to PDF?

Yes, there is page export and a space export. Header, footers and start page only show when you do a space export.

OMG thank you very much!!! I always exported it with Tools -> Export to PDF
No wonder it didn't work. Sorry I didn't know that there are two ways to export to PDF.

You helped me a lot with this one :)

Im in the same boat as Achim, can anyone help?

@Jamie: Help is here. Can you tell us what you want?

Brilliant!! Much appreciated! I am just trying to add a title page saying anything to be honest. So that I see it on all pages I export to PDF. I believe this requires a global setting change? Can you give me some demo code and tell me exactly where I need to put it!

I forgot to mention I am using confluence on demand!


I can only give instructions for the download version but it should be similiar for on demand:

Go to Browse > Space Admin > PDF Layout > PDF Space Export Header
to define a page header for information that will appear at the top of every exported page

- or -

Go to Browse > Space Admin > PDF Layout > PDF Space Export Title Page
to define a title page that will appear before all the other exported pages

In both cases you just click "edit" and enter normal html code.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 15 hours ago in Agile

Managing Projects in Several Jiras at the Same Time

Have you ever noticed that fixing specific problems might be a door opener for a bigger challenge, affecting a wider audience? This was exactly the case when we, as a service company working with mul...

65 views 0 9
Read article

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