Forums

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

PDF export title with dynamic content in Confluence

Prashant Mali
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.
August 27, 2018

How to get Author name, Creator Date in pdf title page during pdf export in Confluence?

 

2 answers

2 votes
Dave Bosman [Realdolmen]
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.
August 27, 2018

Hi @Prashant Mali

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

Prashant Mali
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.
August 27, 2018

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

Anil Gupta March 11, 2019

So you are getting values while you export pdf ?

1 vote
Nils Bier _K15t_
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.
August 27, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events