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,
Shannon

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
Published 13 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

96 views 1 13
Read article

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