Export to PDF and render custom UI macros

Hello Community!

We are using custom ui to render a advanced table.
Now when a user exports the page we dont see the rendered view of the macro.
I have tried to make it render a react app but failed.
Is there a way I can render my macro in the export to PDF when using custom UI?
Best regards
Peter

There’s an outdated tutorial here: https://developer.atlassian.com/platform/forge/change-the-confluence-frontend-with-the-ui-kit/#specify-the-export-view
See some issues here: How to invoke data for adfExport in Confluence Forge UI Kit?

Hi @PeterAtthem

To answer your question, it is not possible to render React components in the export view, instead, your app will provide export content in Atlassian Document Format (ADF).

The tutorial linked above is the correct tutorial for using the adfExport feature. This is the most up to date tutorial for exporting macro content.

@AaronCollier You mentioned it was outdated - are there any particular issues you found with it, asides from what’s in the other thread you linked, that we’ve already raised bugs for?

1 Like

At the top, it says “Last updated Feb 12, 2020” and it talks about UI Kit components, so I was assuming. But from the use of @forge/react, it seems it’s just the date that’s outdated.

You’re right, the last updated date is incorrect, we can get that fixed up.

I can confirm internally that the last time this tutorial was updated was June 2024.

Thanks for the reply, I think it will be to hard at the moment to convert our table to the ADF format.
Best regards
Peter