PDF Export Customisations doesn´t works

I tried to change the PDF export of a space so that the top place a logo and even though I try, it seems that confluence does not see any of my modifications, the code I'm using is identical to the example on page of documentation.

PDF Space Export Title Page

Planning for Confluence 4.0

PDF Export 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;

}

2 answers

1 accepted

Did you do it like this?

Go to Browse => Space Admin => PDF Layout => PDF Space Export Title Page and insert the following code:

<div class="fsTitlePage">
  <img src="/download/attachments/590719/titlepage.png" />
  <div class="fsTitle">Planning for Confluence 4.0</div>
</div>

Then go to Browse => Space Admin => PDF Stylesheet => PDF Export Stylesheet and insert the following styles:

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

To export the space go to Browse => Advanced => PDF Export and click export.

The custom styles defined in the PDF export stylesheet will be applied to all pdf exports, but the customizations of the PDF layout only take effect when exporting in the Browse Space section. They won't be applied when you export a single page over Tools => Export to PDF.

Thanks Buddy.

I like this works over Tools => Export to PDF =(


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,702 views 25 10
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