Page URL in exported PDF footer

Adam Jacobson
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.
December 3, 2012

Hi all,

I'd like to include a page's URL (either in full or tinyurl form) in the footer of a PDF export.

Perhaps I could use the CSS content property in combination with something. Does anybody know if this is possible?

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
Daniel Borcherding
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.
December 3, 2012

Hello Adam,

There is no combination of CSS that is going to allow this information to be displayed on the page. I dida sample export of a test space and saw for my export the fields that you are looking for are simply not included. CSS is used from styling elemets on a page. That it to say putting them where you want them and making them pretty.

From the documentation we see that Confluence can only render out html and css elements from the Confluence Admin > PDF Layout page. There is currently no way to add velocity (dynamically generated) elements to these page exports.

This is tracked in our community bug tracker below.

https://jira.atlassian.com/browse/CONF-16527

Please let us know if there is anything we can further clarify.

Adam Jacobson
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.
December 4, 2012

Thanks for the information Daniel.

Adam Jacobson
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.
December 4, 2012

One more thing to clarify please Daniel. An alternative for me is to include the tiny URL in the page content. By googling and hacking around, I can achieve this on the displayed page with a user macro that looks like this:

$action.getGlobalSettings().getBaseUrl()/x/$action.getTinyUrl()

However, when exporting to PDF only the base URL is rendered correctly and the getTinyURL part shows literally as 'getTinyURL()'.

Could there be a way to ensure the getTinyURL part is also rendered correctly?

0 votes
William Zanchet [Atlassian]
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.
December 3, 2012

Hey Adam,

I found a few CSS codes for PDF footer in this documentation: https://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF

I hope this helps.

Cheers,

WZ

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events