Modifiy Header Footer Confluence Page
Asked by Mathieu Pousset:

Hi, i have try to modify the html \& css in confluence but nothing work i don't why ? i use this two url for test some kind of customization <https://support.atlassian.com/confluence-cloud/docs/customize-exports-to-pdf/>  
<https://support.atlassian.com/confluence-cloud/docs/advanced-pdf-export-customizations/>  
This my code ==\>  
Header:  
\<div style="margin-top: 10.0mm;"\>  
\<img src="/download/attachments/1301020691/logo_novutech.jpg" /\>  
\</div\>  
Footer:  
\<span id="pageNum"/\>  
Css :  
#pageNum:before  
{  
content: counter(page);  
}  
is there anything I have forgotten ?  
Thanks \& Regards.  
Mathieu.


Answers:
author: Pramodh M
body: Hi [@Mathieu Pousset](/t5/user/viewprofilepage/user-id/4681673)

Include the Page Number from the Option "Include Page Number while exporting PDF"

and for the Image can you include the Source from the confluence link or any link accessible publicly, seems like you are giving the relative link.

Let me know if you have any queries

Thanks,  
Pramodh

comments: author: Mathieu Pousset
body: Hi Pramodh,

Yes i have see this option.

But i want the page number by defaut for everybody who export in pdf.

When he does that on the proper page :

![chrome_DcxahXBLZn.png](https://community.atlassian.com/t5/image/serverpage/image-id/175179i787C05F7CC5E8D4E/image-size/large?v=v2&px=999 "chrome_DcxahXBLZn.png")

What do you mean about link accessible ?

I have follow the note  
<https://support.atlassian.com/confluence-cloud/docs/customize-exports-to-pdf/>  
<https://support.atlassian.com/confluence-cloud/docs/advanced-pdf-export-customizations/>  
And normaly the image is accessible because it is on my confluence space, as you see in my previous screen i have add it on a page for that.  
Thanks for your help.  
Mathieu.


author: Pramodh M
body: [@Mathieu Pousset](/t5/user/viewprofilepage/user-id/4681673)

Try navigating to Space Administration UI and then export the Page using the Custom option, there you will get to select the Page Number Option.

Up to 50 Images are included while exporting, make sure you have fewer images while exporting the page to pdf.

Thanks,  
Pramodh


author: Mathieu Pousset
body: [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) ,

The pdf export works and when I have images in my pages it works, it's not that my problem.  
In fact I want to have a logo in the header and the page number in the footer by default.  
Like a document template.  
That's why I followed the two links I quoted above.

And it's for that i want modify this section :

![chrome_dmKdhX804t.png](https://community.atlassian.com/t5/image/serverpage/image-id/175184i0344D353F8D1DD54/image-size/large?v=v2&px=999 "chrome_dmKdhX804t.png")

Best Regards.

Mathieu


author: Mathieu Pousset
body: Hello,

Any body know how can we modifiy Header Footer Confluence Page ?

With add an image and page number.

Best Regards.

Mathieu.


author: Mathieu Pousset
body: Hello,

Any body have news if can we modifiy Header Footer Confluence Page ?

With add an image and page number.

Best Regards.

Mathieu.


Tags: cloud

confluence-cloud

css

html

image

page

pdf