How to get Author name, Creator Date in pdf title page during pdf export in Confluence?
Out of the box this does not work. And in the past there was a plugin that was able to do this but i am unable to find it now.
You can create a user macro to add the name and date to the page.
You would need to add following 2 lines in the usermacro
$content.getCreator().getFullName()
$action.dateFormatter.formatDateTime($content.getCreationDate())
You can use some html and css to make it look prettier.
Add the macro to the page that you want to export.
If you want to hide it on the page and only show it in the export you can use https://marketplace.atlassian.com/apps/1213333/pdf-macros-for-confluence?hosting=server&tab=overview
ps: i did not test it, but it should work.
Regards
Dave
Thank you so much for the information @Dave Bosman [Realdolmen] .
I am getting values in user macro of confluence page.
I have pdf layout HTML pages(Title,Header and Footer). My requirement is to show these values in Title page during pdf export.
Thanks,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Prashant Mali,
In addition to the approach Dave mentioned, you might also want to have a look at our Scroll PDF Exporter to export your Confluence content to PDF.
In our graphical template designer you can easily refer to content taken from Confluence dynamically by using placeholders, also to the page creator, and creation date.
We have a full list of our available placeholders in our documentation - those placeholders will then be replaced with the corresponding value for each export.
If you want to give it a try, Scroll PDF Exporter can be evaluated via the Atlassian Marketplace.
I hope this helps.
Cheers,
Nils
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.