Confluence: Use Macros in PDF Stylesheet

Is there a way to use macros (either built-in, add-ons or user created) in PDF Stylesheet?

Scenario: I have a macro to display the current date and time and would like to use it as a footer via the PDF Stylesheet.  Since there is no simple solution to add date and time using PDF Stylesheet hence the need.

1 answer

0 votes

Hi Adeel,

You will need to use something else in order to include the date in your footer.

Have a look at this previous community question at Steffen's answer where he points out a location where you can find some Javascript that may help you.

Kind Regards,

Hi Shannon, 

Thank you for replying. Much appreciated. 

I've followed through the link and it only shows how to create a user macro to use within a page. It doesn't talk about including macros in PDF Stylesheet or how to explicitly add date and time in the footer of exported PDF. 

My hunt for an answer continues.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

933 views 47 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you