Confluence PDF & Word Export Issue with Prolaborate Macro (Cloud & Server)

Issue Summary

We have developed a Prolaborate macro for both Confluence Cloud and Confluence Server. The macro renders content correctly on Confluence pages, but we face issues when exporting to PDF and Word.

Issues in Confluence Cloud

The macro works fine when used in Confluence pages, rendering all content correctly.

PDF Export Issue:

When exporting the page to PDF, all content is loaded except images.

The images are embedded using Base64 encoding and retrieved via an API request. This works correctly during page rendering but fails in the exported PDF.

Word Export Issue:

The page content loads in the exported Word document, but the macro-generated content is missing.

Issues in Confluence Server

The same macro implementation is used for Confluence Server.

PDF & Word Export Issue:

In both PDF and Word exports, the macro content is completely blank with no traces of data.

Questions:

Why is the Base64 image failing to load in the PDF export on Confluence Cloud?

Why does the macro content not appear in the Word export for Confluence Cloud?

Why is the macro content completely missing in both PDF and Word exports on Confluence Server?

Prolaborate Macro Links
DataCenter / Server : Atlassian Marketplace
Cloud : Prolaborate 4 | Atlassian Marketplace