PDF Export: Insert the last alteration date

Jonas Luebcke March 8, 2016

Hello guys,

 

is their an opportunity to insert the last alteration date while exporting to PDF?

I want to put the last date of chance into the footer of my PDF export of a single page.

 

I already tried to fix my problem while using the current-time makro, but this solution shows the date I exported to PDF and not the date of the last time the page was saved.

 

Thanks in advance.

2 answers

1 accepted

2 votes
Answer accepted
Tibor Hegyi _META-INF_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 8, 2016

Hi Jonas,

 

I'm sure you can create a User Macro that can access the page's last modification date as $!content.getLastModificationDate and render it in the output of the macro.

I'm not sure though if you can format it, it will print the last mod date of the pages you place the macro in.

Tibor

Jonas Luebcke March 8, 2016

Brilliant! Thank you very much.

I can now insert the last mod date and the PDF export works as well.

 

Does anybody know if I can put this into the footer?

I thought of something like this:

@bottom-left {
       content: {LastModificationDate};
}
Nicolas Casel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 22, 2016

Hi Jonas,

Brilliant! Thank you very much.

I can now insert the last mod date and the PDF export works as well.

=> How did you do exactly? By writing a specific User Macro?

0 votes
Shelly Beckwith February 28, 2020

I am not finding that by user defined functions run when putting them in the css.  Is there something else that needs to be done in order to be able to use the functions?

@bottom-right {
content: {documentversion} ;
}

Ivo Bernardino April 6, 2020

Same here =(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events