How do you display dynamically created Confluence tabs in the exported PDF file?

I created two user macros: one for the 'tabs container', and one for creating tabs. You insert as many 'tab' user macros inside the 'tab container' user macro. I'm using the Confluence tabs shown on this page:


The tabs render correctly in HTML, but when I export to a PDF, nothing gets displayed but the outline of the 'tabs container'. The 'tabs container' user macro uses JS to create an unordered list of tab anchors from the content added to the inserted 'tab' user macros. Again, this works great for HTML pages, but not for the exported PDF.

Also, is there a way to access the content of the inserted user macros through the $content or other Confluence objects of the parent 'tabs container'? If that was possible, I could theoretically create static HTML and possibly correct the problem. I'm assuming this issue is because of the rendering of the $body in the 'tab' user macro because when I just use the HTML macro to enter the tabs as shown in the page above, it renders in the HTML page and also gets displayed in the exported PDF, although the presentation of the PDF is not great. Thanks in advance for any help. 

1 answer

1 vote

Not sure if this is still relevant for you, but you might want to try the Scroll PDF Exporter which supports more macros and has more styling options than the Confluence out of the box one.

See also this entry which might be your use case.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

183 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you