Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Header and Footer not showing while exporting to PDF

Adimi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2022

I'd like to set a custom header and footer to load every time I export to PDF (company logo) but whatever I write in the Header, Footer or Title doesn't show up at all on the exported PDF file (Even regular text lines). Can somebody tell me what I'm missing here? I've tried to use the guide on custom PDF exports with HTML code/CSS from these links but nothing worked for me:

https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html#CustomizeExportstoPDF-Headerorfooter

https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html

I'd be more than happy if somebody can, again, tell me what I'm missing...

2 answers

1 vote
Erin Warner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2023

Single page exports don't support adding HTML headers and footers via the PDF Layout page, but you can use CSS rules in the PDF Stylesheet page (Space toolsLook and Feel > PDF Stylesheet) to produce headers and/or footers for a single page export.

More info here: https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html

Support Programmer April 21, 2024

Hi @Erin Warner

Is it possible if you could please provide a quick example to your statement? I did follow the instructions in the link provided but to no avail.

"...you can use CSS rules in the PDF Stylesheet page (Space tools > Look and Feel > PDF Stylesheet) to produce headers and/or footers for a single page export."

The screenshots attached display what I tried:

image.png

image.png

Support Programmer April 21, 2024

The issue was that I wanted to display the file from my local machine (which is not supported).

So, the resolution for this issue was to create a page in confluence where the required image is attached to the page and then find its image location from below:

Space Settings > Manage contentAttachments

image.png

Modified the URL to suit the src attribute as "/download/attachments/1499725888/Company%20Logo.png" and it works.

1 vote
Jesse Maxwell November 10, 2022

Same here – anyone have ideas? My HTML is simple:

 

```

<div style="margin-top: 10.0mm; border-top: 5px solid #5f9ef4;">  

<div>My Company</div>  

<span id="pageNum"/>  

<div>[URL]</div>  

</div>  

```

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events