Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-31307

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

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? 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;
      }
      

      Attachments

        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

        Issue Links

          Activity

            People

              3fc9a08d5c87 Martin Maza
              39261b7532d0 Xavier Borderie
              Votes:
              58 Vote for this issue
              Watchers:
              70 Start watching this issue

              Dates

                Created:
                Updated: