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

Increase header and footer height in PDF layout

Tim Mohrbach Dec 14, 2015

I am looking for a way to change the footer and header height for the confluence PDF export layout.

I have tried to do it through margin from bottom and top, but the content gets cut off.

Thanks for any idea how to achieve this. This should be possible through the global CSS somehow, right? Which framework is being used for the PDF export in anyway, I understood that the metalanguage is html, but where is a complete list of what's possible and what's not possible?

 

Everything else works pretty smooth and we are very happy with the PDF export function so far. We surely don't want to spend another few thousand dollar on a third party plugin just to increase the height of the header and the footer.

1 answer

1 accepted

2 votes
Answer accepted
Steffen Heller Dec 14, 2015

Hi,

headers and footer can be defined in two different places:

  1. Space Admin > PDF Layout > PDF Space Export Header
  2. Space Admin > PDF Stylesheet > PDF Export Stylesheet

1. is nice and simple but rather limited.

2. gives you the possibility to define your own customized CSS. The thread at PDF-Export: Which CSS properties do work and which ones not? discusses what is possible and what is not.

 

Your question in short:

Generally, the height of your header/footer is equal to the top/bottom margin of your @page settings.

For a header with 1cm and a footer with 3cm you would go to 2. and enter the following:

@page {
size: 210mm 297mm; 
margin-top: 1cm;
margin-bottom: 3cm;
}

The vertical position of text within the header/footer is defined with "vertical-align: top/middle/bottom/...".
You might need to adapt that to your needs.

Tim Mohrbach Dec 14, 2015

Great, exactly what I was looking for, thanks for that!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

893 views 0 19
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