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

Word and PDF Export: Info, Note, Warning and Tip macros are not included in the exported document

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      When a Confluence page has an Info, Note, Warning or Tip macro in its content, the Word export of that page only includes the text contained in the macro (with the title if available). The macro's icon itself is replaced with the word "Icon".

      In previous versions of Confluence (3.5.16, 4.3.3), the macros exported fine : icon on the left, text on the right, border and background color as expected.
      I wonder if this might come from the fact that the macros used to be displayed using an HTML Table tag, and now use a Div tag with CSS the place the icon.

      This makes printing the documentation a pain, since the editor has to hunt for all the "Icon" mentions and rebuild the macros' Table tag and color.
      As an aside, this makes copy-pasting the content of a Confluence page in an HTML (or WYSIWYG) page a pain, since all the macro HTML tables are lost there too, replaced with "Icon" and plain text.

      See attached files:

      • CaptureMacroTestConfluence.PNG: the macros as seen in Confluence 5.1.5.
      • CaptureMacroTestWord.PNG: the macros as seen in Word 2010.

      Could this be related to CONF-28579 ("Cell background colors do not print out") and CONF-23583 ("The table's border become invisible in the output of the "Export to word"")?

      Note that this bug also happens with the Pagetree Word Exporter plugin (https://marketplace.atlassian.com/plugins/com.metainf.confluence.plugin.pagetreeexporter.pagetree-word-exporter-plugin).

      Possible workaround solution for PDF export:

      Please add the following css code in the Global PDF Stylesheet:

      body p
      {
        font-size: 150%;
      }
      
      .confluence-information-macro-note  
      {
          background-image: url(../../../images/icons/macrobrowser/dropdown/note.png);
          background-repeat: no-repeat;
          background-size:auto;
          background-position: 10px 10px;
      }
      
      .confluence-information-macro-information  
      {
          background-image: url(../../../images/icons/macrobrowser/dropdown/info.png);
          background-repeat: no-repeat;
          background-size:auto;
          background-position: 10px 10px;
      }
      
      .confluence-information-macro-warning  
      {
          background-image: url(../../../images/icons/macrobrowser/dropdown/warning.png);
          background-repeat: no-repeat;
          background-size:auto;
          background-position: 10px 10px;
      }
      
      .confluence-information-macro-tip  
      {  
          background-image: url(../../../images/icons/macrobrowser/dropdown/tip.png);  
          background-repeat: no-repeat;  
          background-size:auto;  
          background-position: 10px 10px;  
      }  
      

        1. 2015-MacroTestWithinConfluence.PNG
          2015-MacroTestWithinConfluence.PNG
          9 kB
        2. 2015-MacroTestWithinWord.PNG
          2015-MacroTestWithinWord.PNG
          8 kB
        3. 2016-08-24_11-06-32.png
          2016-08-24_11-06-32.png
          38 kB
        4. 2016-08-24_11-08-11.png
          2016-08-24_11-08-11.png
          42 kB
        5. CaptureMacroTestConfluence.PNG
          CaptureMacroTestConfluence.PNG
          14 kB
        6. CaptureMacroTestWord.PNG
          CaptureMacroTestWord.PNG
          10 kB
        7. noteinfowarn.css
          2 kB
        8. screenshot-1.png
          screenshot-1.png
          17 kB

            [CONFSERVER-31307] Word and PDF Export: Info, Note, Warning and Tip macros are not included in the exported document

            Saba Taseer made changes -
            Remote Link Original: This issue links to "Page (Bulldog)" [ 386866 ]
            Iker Alonso made changes -
            Link New: This issue relates to CONFSERVER-75237 [ CONFSERVER-75237 ]
            set-jac-bot made changes -

            Thanks Paul!

            catarina.ribaes added a comment - Thanks Paul!

            Paul added a comment -

            Hi Catarina,

            Yes, we managed to fix the issue with the help of Confluence support. Actually we had to re-add our Confluence SSL certificate to the Java keystore after the upgrade and it worked. Hope this helps.

            Paul added a comment - Hi Catarina, Yes, we managed to fix the issue with the help of Confluence support. Actually we had to re-add our Confluence SSL certificate to the Java keystore after the upgrade and it worked. Hope this helps.

            Hi Paul.

            Were you able to solve this issue?

            catarina.ribaes added a comment - Hi Paul. Were you able to solve this issue?

            Hi,

            I have the same issue. Has this been solved? 

            catarina.ribaes added a comment - Hi, I have the same issue. Has this been solved? 

            SMAtlassianMber added a comment - - edited

            We also just upgraded from 6.10.0 to 6.15.7 and tips do not export to PDF correctly either. I tried the workaround listed above, no change in the pdf image. 

             

            SMAtlassianMber added a comment - - edited We also just upgraded from 6.10.0 to 6.15.7 and tips do not export to PDF correctly either. I tried the workaround listed above, no change in the pdf image.   

            Hey again, 4fd8600115ec

            I checked again and 6.15.7 should definitely contain the fix.
            I would encourage you to raise a ticket with Atlassian support as it sounds like there may be an issue with your configuration of Confluence (perhaps those stylesheets are not global-level stylesheets but space-level ones?).

            Thank you  

            Mark Bereznitsky added a comment - Hey again, 4fd8600115ec I checked again and 6.15.7 should definitely contain the fix. I would encourage you to raise a ticket with Atlassian support as it sounds like there may be an issue with your configuration of Confluence (perhaps those stylesheets are not global-level stylesheets but space-level ones?). Thank you  

            Paul added a comment -

            Hi Mark, Actually the workaround was tried since it didn't work as such. It doesn't work with or without the CSS stylesheet.

            Paul added a comment - Hi Mark, Actually the workaround was tried since it didn't work as such. It doesn't work with or without the CSS stylesheet.

              mbereznitsky Mark Bereznitsky
              39261b7532d0 Xavier Borderie
              Affected customers:
              65 This affects my team
              Watchers:
              65 Start watching this issue

                Created:
                Updated:
                Resolved: