Confluence export template
Asked by Achim:

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


Answers:
author: Dobroslawa Wierzbicka
body: 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](https://confluence.atlassian.com/display/AOD/Customising+Exports+to+PDF) for more details and examples of customizations.

Hope this helps!

comments: author: Achim
body: Thanks a lot!


author: Achim
body: 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!


author: Praveen R
body: There is now a new way to customize and personalize your PDF and Word Doc exports from your Confluence pages. Check out [Crystal Export](https://marketplace.atlassian.com/apps/1225554/crystal-export-for-confluence?hosting=cloud&tab=overview).

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


author: Steffen Heller
body: @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?

comments: author: Achim
body: 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?


author: Steffen Heller
body: @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.

comments: author: Achim
body: 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.


author: Steffen Heller
body: @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.

comments: author: karim DJAAFAR
body: 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


author: Jamie Jones
body: I forgot to mention I am using confluence on demand!


author: Jamie Jones
body: 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!


author: Steffen Heller
body: @Jamie: Help is here. Can you tell us what you want?


author: Jamie Jones
body: Im in the same boat as Achim, can anyone help?


author: Steffen Heller
body: 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?

comments: author: Steffen Heller
body: Yes, there is page export and a space export. Header, footers and start page only show when you do a space export.


author: Achim
body: 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 :)


author: Steffen Heller
body: When I do exactly that I get a PDF with a first page that shows a big "owpvweopvmwepovmwepovm  
wepoivm".

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


author: Steffen Heller
body: > 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?

comments: author: Achim
body: 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...


Tags: cloud

confluence-cloud

export

template