Forums

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

Is there a way to add the Page title to the Header section while exporting a page as PDF?

Shriram Someshwar
January 16, 2026

I'm trying to export a page for in a space for a customer. I need to have the Title of the page to be present in the header section of the pdf export. So that the customer knows that this document pertains to the topic mentioned in the header.

Title of the page here is: Task/issue/meeting time entry. 

I want to know how this can be put in the header section. I want the title to be dynamically populated in the header every time pdf export is done.

Screenshot 2026-01-16 124917.png

2 answers

4 votes
Adrian Woods
Contributor
January 16, 2026

Hi there, @Shriram Someshwar

I believe what you're looking for would be in the "Space Settings" option. If you navigate there and then go to "Look and feel", you'll see an option that says "PDF Export". Here is where you can save and keep your custom header and footing changes for each time an export happens!

For us, it's important that all documents read out "Internal Use Only". Truly hope this helps out! Pic below, just in case!Screenshot 2026-01-16 134100.png

Kris Klima _K15t_
Community Champion
January 16, 2026

@Adrian Woods You beat me by 2-3 minutes :D 

Like Adrian Woods likes this
Adrian Woods
Contributor
January 16, 2026

@Kris Klima _K15t_  Trying my best to get out here and make a name on the forums! :D I'm glad we're on the same page with an ideal response though!

Kris Klima _K15t_
Community Champion
January 16, 2026

@Adrian Woods Do continue! 

Like Adrian Woods likes this
Shriram Someshwar
January 16, 2026

Hey guys, thank you for your response. 

I did try this and was able to add images and add static text. What I'm trying to find out is how to what variable syntax to use ($page.title is the default CSS syntax to retrieve Document Title) however it is not supported in Confluence. 

I wanted to check how to get this done.

@Kris Klima _K15t_ @Adrian Woods 

Like Adrian Woods likes this
Adrian Woods
Contributor
January 16, 2026

Interesting...

I dug a bit deeper into this and it seems like Confluence Cloud doesn’t currently expose a variable like $page.title that you can use directly in the PDF header/footer template like I originally thought.

The closest native workaround might be:

For space/multi-page exports, possibly using the “Advanced PDF export customizations” trick that treats the top-level TOC entry as a dynamic title on the cover page. That will allow the cover title change depending on which top-level page you export from - the doc is here on how to do that.

For single-page exports, there isn’t a way today to inject the page title dynamically into the header. In practice, the options are to:

  • Put the title clearly at the top of the page content itself and use a generic header
  • Use a Marketplace PDF exporter that supports template variables for page title in headers/footers (I couldn't attest to which one would be best for this use case; I try to ensure we have a best solution internally engineered if possible)

I know that’s not as clean as dropping a $page.title variable into the header, but at the moment Confluence Cloud’s built‑in export doesn’t support that kind of dynamic substitution as far as I can see beyond that. I hope this is still able to help somewhat!

Like # people like this
Kris Klima _K15t_
Community Champion
January 17, 2026

@Shriram Someshwar 

As @Adrian Woods hinted at Marketplace apps, my company - K15t - makes a PDF exporter which allows you to create a template with a custom header.

I can only encourage you to test various apps to see which one fits your use case and price points.

If you can't test apps in your corporate environments, do what Confluence aficionados do, create you own personal Confluence site with Confluence Free and use it for experiments. It's free, many apps are free for up to 10 users, so just drop some lorem ipsum pseudo text onto a page and let the testing commence.

Like Shriram Someshwar likes this
Shriram Someshwar
January 18, 2026

Thank you for the information, I'll check it out. 

Like Kris Klima _K15t_ likes this
1 vote
Kris Klima _K15t_
Community Champion
January 16, 2026

Hi @Shriram Someshwar 

You can try to play with the PDF export settings and define a header (among other things, and apply custom CSS)

 

2026-01-16_19-44-04.png

Suggest an answer

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

Atlassian Community Events