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

This widget could not be displayed.

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
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

547 views 7 6
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