Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-39128

Images in Word or Excel documents (displayed via the View File Macro) does not appear in PDF exports

      Issue Summary

      When exporting a page to PDF that includes Word or Excel documents displayed through the Office Word Macro or Office Excel Macro, we encounter an issue where images are missing from the export.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      Step-1. Created a Confluence 9.2.0 environment
      Step-2. Created a page and added a word document containing images with the Office Word Macro.

      Step-3. Publish the page and images are visible when viewing the page

      Step-4. Generate a page PDF export and we can see the images are missing

      Attaching the sample storage format, sample word document and pdf export for reference.
      StorageFormat.txt
      TestWordDoc.docx
      pdfExport.pdf

      Expected Results

      Images should appear in PDF export

      Actual Results

      Images are missing in PDF export

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

      Note

      In the logs, we could see the following exception with sandbox debug logging (com.atlassian.confluence.impl.util.sandbox).

      2025-01-22 05:13:03,990 WARN [http-nio-8090-exec-1 url: /confluence/plugins/servlet/benryanconversion] [atlassian.confluence.servlet.ServletModuleContainerServlet] service Access check is failed. Skipping Servlet com.benryan.conversion.HtmlImageServlet
       -- url: /confluence/plugins/servlet/benryanconversion | userName: anonymous | traceId: ef873ffb5d3b297d
      2025-01-22 05:13:03,993 ERROR [http-nio-8090-exec-1 url: /confluence/plugins/servlet/benryanconversion] [ContainerBase.[Standalone].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page
       -- url: /confluence/plugins/servlet/benryanconversion | userName: anonymous | traceId: ef873ffb5d3b297d
      com.atlassian.sal.api.permission.AuthorisationException
      	at com.atlassian.confluence.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:103)
      
      2025-01-22 05:13:04,005 ERROR [http-nio-8090-exec-1] [[Standalone].[localhost].[/confluence].[servlet-module-container-servlet]] log Servlet.service() for servlet [servlet-module-container-servlet] in context with path [/confluence] threw exception
      
      2025-01-22 05:13:05,050 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker1: Can't get image resource for uri/confluence/plugins/servlet/benryanconversion?pageId=2588676&attachment=TestWordDoc.docx&name=2588678&val=/image-1.png, error: Unknown image format
      

        1. imagetest.doc
          173 kB
        2. pdfExport.pdf
          1 kB
        3. screen1.png
          screen1.png
          981 kB
        4. screen2.png
          screen2.png
          1.63 MB
        5. StorageFormat.txt
          0.3 kB
        6. TestWordDoc.docx
          1.76 MB

            [CONFSERVER-39128] Images in Word or Excel documents (displayed via the View File Macro) does not appear in PDF exports

            0xF0F added a comment -

            Not even word builtin objects(like word-flowcharts in our case) can be exported. 
            This shouldn't be to complicated to be fixed!?

            0xF0F added a comment - Not even word builtin objects(like word-flowcharts in our case) can be exported.  This shouldn't be to complicated to be fixed!?

            This affects my team.  We are less likely to use Confluence for our documentation without this 

            John Trimming added a comment - This affects my team.  We are less likely to use Confluence for our documentation without this 

            dinh luong added a comment -

            Hi Minh, I tried to export word file from confluence 6.0.1, But in it own images, some images are visible but another is invisible.

            invisible image link are something like : C:\download\attachments\2556324\worddavd4d1adcaf28b598e169234a28f434d3e.png?version=1&modificationDate=1486616996553&api=v2

            dinh luong added a comment - Hi Minh, I tried to export word file from confluence 6.0.1, But in it own images, some images are visible but another is invisible. invisible image link are something like : C:\download\attachments\2556324\worddavd4d1adcaf28b598e169234a28f434d3e.png?version=1&modificationDate=1486616996553&api=v2

            Hi Minh!

            Issue still exists and even got worse.

            As suggested, I raised two other bugs:

            Hope this helps
            Kind regards
            Florian

            Florian Hassanen added a comment - Hi Minh! Issue still exists and even got worse. As suggested, I raised two other bugs: CONF-39251 CONF-39252 Hope this helps Kind regards Florian

            Minh Tran added a comment -

            Hi All,

            Thanks for taking the time to raise and comment on this issue. Unfortunately this issue hasn't been updated in the last 1 years and rather than leave this on the backlog I have decided to close this as won't fix. I believe that this better reflects the status of this issue.
            If this issue is raised again in the future we'll re-asses this status.

            Regards
            Minh Tran
            Confluence Bugmaster
            Atlassian

            Minh Tran added a comment - Hi All, Thanks for taking the time to raise and comment on this issue. Unfortunately this issue hasn't been updated in the last 1 years and rather than leave this on the backlog I have decided to close this as won't fix. I believe that this better reflects the status of this issue. If this issue is raised again in the future we'll re-asses this status. Regards Minh Tran Confluence Bugmaster Atlassian

              Unassigned Unassigned
              2ff3e5e81230 Shekhar Gupta
              Affected customers:
              3 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated: