How to get current date into confluence page pdf export?
Asked by Vaibhav kamble:

How to get current date into confluence page pdf export?


Answers:
author: Tansu Akdeniz
body: Hi [@Vaibhav kamble](/t5/user/viewprofilepage/user-id/1839526) ,

The topic is discussed before. You can find some answers here:

* <https://community.atlassian.com/t5/Confluence-questions/Insert-current-date-into-Confluence-page/qaq-p/313517>
* <https://community.atlassian.com/t5/Confluence-questions/Insert-Date-on-PDF-Export/qaq-p/672130>
* <https://community.atlassian.com/t5/Confluence-questions/PDF-Export-Insert-the-last-alteration-date/qaq-p/160811>

Regards

comments: author: Vaibhav kamble
body: Hi [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390) ,

Thank you for your responses

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


author: jolyont
body: 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.


author: Julia B -Doc Queen
body: 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](https://protect-us.mimecast.com/s/psUSCNkpJ2sN2GlXI4jVJE?domain=jira.atlassian.com).


author: Tarun Sapra
body: Hello [@Vaibhav kamble](/t5/user/viewprofilepage/user-id/1839526)

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

comments: author: Vaibhav kamble
body: Hi **[@Tarun Sapra](/t5/user/viewprofilepage/user-id/781576)**

I have attached pdf page screenshot ![pdf export date.png](https://community.atlassian.com/t5/image/serverpage/image-id/52904i4A40D08B2856E8B2/image-size/large?v=v2&px=999 "pdf export date.png")


author: Tarun Sapra
body: Hello [@Vaibhav kamble](/t5/user/viewprofilepage/user-id/1839526)

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.


author: Vaibhav kamble
body: Hi [@Tarun Sapra](/t5/user/viewprofilepage/user-id/781576) ,

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


author: Tarun Sapra
body: Hello [@Vaibhav kamble](/t5/user/viewprofilepage/user-id/1839526)

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


author: Vaibhav kamble
body: Hi [@Tarun Sapra](/t5/user/viewprofilepage/user-id/781576) ,

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.


author: Tarun Sapra
body: Hello [@Vaibhav kamble](/t5/user/viewprofilepage/user-id/1839526)

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


author: Vaibhav kamble
body: hi [@Tarun Sapra](/t5/user/viewprofilepage/user-id/781576)

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

It's working into page edit


Tags: confluence-server

server