Confluence export template

Achim January 20, 2013

Hello,

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

12 answers

1 accepted

4 votes
Answer accepted
Dobroslawa Wierzbicka
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2013

Achim,

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!

Achim January 20, 2013

Thanks a lot!

Achim January 21, 2013

Hi,

I tried use some of the code I found here:

https://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF

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!

2 votes
Praveen R October 3, 2021

There is now a new way to customize and personalize your PDF and Word Doc exports from your Confluence pages. Check out Crystal Export.

 

Easily add header/footer, table of contents, rich text and more using our WYSIWYG editor.

1 vote
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2013

@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?

Achim February 5, 2013

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?

1 vote
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2013

@Achim:

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.

Achim January 31, 2013

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:

https://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF

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.

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2014

@Jamie:

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.

karim DJAAFAR May 22, 2020

Hi

I follow the steps fort my part and nothing is displayed ?

 

Exemple:

<p><span style="color: #ff9900;"><strong>Copyright Jasmine Conseil</strong> <strong>2020</strong></span></p>

BR

Karim

0 votes
Jamie Jones April 10, 2014

I forgot to mention I am using confluence on demand!

0 votes
Jamie Jones April 10, 2014
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!
0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2014

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

0 votes
Jamie Jones April 10, 2014

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

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

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?

Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

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

Achim February 5, 2013

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 :)

Like Steffen Heller likes this
0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

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

Achim February 5, 2013

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

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2013

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?

Achim February 5, 2013

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>
</div>

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

.fsTitlePage
{
margin-left: auto;
margin-top: 50mm;
margin-right: auto;
page-break-after:always
}

.fsTitle
{
font-size: 42px;
font-weight: bold;
margin: 72px 0 4px 0;
text-align:center;
}

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events