How to get current date into confluence page pdf export?

Vaibhav kamble April 26, 2019

How to get current date into confluence page pdf export?

4 answers

2 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 26, 2019
Vaibhav kamble April 26, 2019

Hi @Tansu Akdeniz ,

Thank you for your responses

already I have seen above link it's not working for date

1 vote
jolyont December 11, 2020

I'm horrified that this isn't included in the the standard cloud product, with a simple "/date" thing.   Why do we have to mess around creating macros etc...?   grrr.... 

right, must go and suggest this in the right place.

0 votes
Julia B -Doc Queen March 23, 2021

Please vote for this issue to be resolved. It's crazy that it's not already built in. 

https://jira.atlassian.com/browse/CONFCLOUD-55765.

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 26, 2019

Hello @Vaibhav kamble 

Did you try the solution listed here

https://community.atlassian.com/t5/Confluence-questions/Insert-Date-on-PDF-Export/qaq-p/672130

Could you please share in more detail as to what is not working and share the screenshot of your current implementation

Vaibhav kamble April 28, 2019

Hi @Tarun Sapra 

I have attached pdf page screenshot pdf export date.png

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 29, 2019

Hello @Vaibhav kamble 

Please go through this link

https://confluence.atlassian.com/confkb/how-to-create-a-page-break-function-in-confluence-to-control-pagination-in-pdf-exports-735943076.html

Using above user macro you can set custom page break on pdf export and wherever you use this macro you can then also the use custom "current date" macro.

Hence by combination of the 2 macros you should be able to achieve current data and the page breaks.

Vaibhav kamble April 29, 2019

Hi @Tarun Sapra ,

This is correct but I have created CSS 

  1. @bottom-left  
  2.     {  
  3.          content: "Effective Date": ;   
  4.           font-size: 5pt;  
  5.      }  

also we tried access macro in to css like {current date } still its not working

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 29, 2019

Hello @Vaibhav kamble 

Why are you trying to access the macro in css?

Both macros should be used only on the confluence page.

{current date}

{pagebreak}

like that

Vaibhav kamble April 29, 2019

Hi @Tarun Sapra ,

I have exported a single pdf file so when we export single pdf we add header and footer for a single page export pdf.

In the footer section, I want the date the built-in header footer not working for single page pdf export that the reason I used pdf css.

 

  

Like Tarun Sapra likes this
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2019

Hello @Vaibhav kamble 

But now , is it working for multiple pdf pages with the css?

Vaibhav kamble April 30, 2019

hi @Tarun Sapra 

This is not({current date}{pagebreak}) working into pdf export.

It's working into page edit 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events