The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Tibor Hegyi _META-INF_
Atlassian Partner
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 Champions.
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 =(

TAGS
AUG Leaders

Atlassian Community Events