Macro not visible when exporting to pdf

I’m using react to build my interactive macros. My macro’s Java class returns an html marker on which I mount the interactive react component once the page is loaded in the browser.

That all works fine but when exporting the page to pdf / word nothing is shown. I guess that happens because the content is taken from the original marker instead of what react renders.

Is there any way around that or is just impossible to have “client side” macros that also export to pdf?

Thanks a lot.

Your macro can detect whether it is being exported. If your macro is being exported you should return html that resembles your dynamic macro as best as possible. :slight_smile: