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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try to play with the PDF export settings and define a header (among other things, and apply custom CSS)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.