# Forge Macro can not be exported as PDF

**URL:** <https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689>\
**Category:** Forge\
**Tags:** pdf-export, confluence-cloud\
**Created:** [October 19, 2022, 7:40am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689 "2022-10-19T07:40:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![julia.cam](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@julia.cam](https://community.developer.atlassian.com/u/julia.cam)\
**Post date:** [October 19, 2022, 7:40am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/1 "2022-10-19T07:40:31Z")

</div>

Hey everyone,

I have a problem with the PDF page export in Confluence Cloud.  
I am trying to include a Macro in the page export. It works fine when I export the page as a Word document or if I look at it in the page comparison (see screenshot below). But when exporting the page as a PDF I only get „Error loading the extension!“. (Not even the console.log gets triggered.)

The real Macro is build with Custom UI Components. But even with a dummy Macro (build with UI Kit Components only) the PDF export does not work.

Here is my manifest.yml:

```auto
modules:
  macro:
    - key: export-ui-kit-hello-world
      function: main
      title: export-ui-kit
      description: Inserts Hello world!
      export:
        function: exportMacro
  function:
    - key: main
      handler: index.run
    - key: exportMacro
      handler: index.exportMacro

```

And the index.js

```auto
import ForgeUI, { render, Fragment, Macro, Text, useProductContext } from "@forge/ui";

const App = () => {
  console.log("Hello App!")
  return (
    <Fragment>
      <Text>Hello UI Kit!</Text>
    </Fragment>
  );
};

export const run = render(
  <Macro
    app={<App />}
  />
);
const ExportIt = () => {
  const productContext = useProductContext();
  console.log("product context ", productContext);
   return (<Text>Hello Export!</Text>);
};

export const exportMacro = render(<ExportIt />);

```

 ![Bildschirmfoto 2022-10-19 um 09.41.14](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/f/1/f1d8942f78959c8c3eb056250da3370e3255d16b.png)

Am I the only one facing this problem?

Thanks in advance for your help.  
Best regard  
Julia

---

<div class="post-metadata">

**Author:** ![SilvreLestang](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/silvrelestang/32/46501_2.png) [@SilvreLestang](https://community.developer.atlassian.com/u/SilvreLestang)\
**Post date:** [October 19, 2022, 8:52am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/2 "2022-10-19T08:52:32Z")

</div>

Hello Julia,

We try to make the export in PDF or Word of our Forge macro works a few weeks ago - by basically doing what you did - and we get the same result: “Error loading the extension!” on both Word and PDF and no log about our function being triggered.

We opened a ticket with Atlassian 3 weeks ago (ECOHELP-2340, its not public) but so far they don’t know what is wrong.

Silvère

---

<div class="post-metadata">

**Author:** ![julia.cam](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@julia.cam](https://community.developer.atlassian.com/u/julia.cam)\
**Post date:** [October 19, 2022, 9:54am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/3 "2022-10-19T09:54:19Z")

</div>

Hey @SilvreLestang ,

thanks for your message. At least we are not the only ones with this issue.  
Is there any way you could keep me in the loop on your ECOHELP-2340 ticket?

Kind regards  
Julia

---

<div class="post-metadata">

**Author:** ![spall](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/spall/32/88_2.png) [@spall](https://community.developer.atlassian.com/u/spall)\
**Post date:** [October 21, 2022, 6:15am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/4 "2022-10-21T06:15:37Z")

</div>

Hi,

as far as I can see, this issue has now been identified as an Incident and is being addressed:

> **[Forge macro export failing with the new PDF export feature](https://developer.status.atlassian.com/incidents/44477v2sx575)**
>
> Atlassian Developer's Status Page - Forge macro export failing with the new PDF export feature.

Best regards,  
Andreas

---

<div class="post-metadata">

**Author:** ![OnucheIdoko1](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@OnucheIdoko1](https://community.developer.atlassian.com/u/OnucheIdoko1)\
**Post date:** [November 1, 2022, 7:23am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/5 "2022-11-01T07:23:03Z")

</div>

Facing same issue. @julia.cam was this issue resolved?

---

<div class="post-metadata">

**Author:** ![julia.cam](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@julia.cam](https://community.developer.atlassian.com/u/julia.cam)\
**Post date:** [November 1, 2022, 8:49am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/6 "2022-11-01T08:49:08Z")

</div>

Hey @OnucheIdoko1,  
Unfortunatly it’s not resolved yet.

But Atlassian is offering a workaround.  
See this ticket:  
[https://jira.atlassian.com/browse/CONFCLOUD-74768](https://jira.atlassian.com/browse/CONFCLOUD-74768)

Best regards  
Julia

---

<div class="post-metadata">

**Author:** ![OnucheIdoko1](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@OnucheIdoko1](https://community.developer.atlassian.com/u/OnucheIdoko1)\
**Post date:** [November 1, 2022, 9:05am UTC](https://community.developer.atlassian.com/t/forge-macro-can-not-be-exported-as-pdf/62689/7 "2022-11-01T09:05:39Z")

</div>

Thanks @julia.cam for the information
