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

Images Aligned Center in a Panel Macro Do Not Appear in PDF Export

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

      Summary

      Embedded images in a Panel-type macro (Panel, Warning, Info, Note, Tip) which are align Center do not appear when the page is exported to PDF

      Environment

      • 5.9.1-OD-62

      Steps to Reproduce

      1. Create a page with a Panel Macro (Panel, Warning, Info, Note, Tip)
      2. Add an Image and align Center
      3. Save Page and Export to PDF

      Expected Results

      Image is displayed in Panel

      Actual Results

      Notes

      Workaround

      Use the Confluence Source Editor to adjust the storage format

      1. Go into the source code
      2. Find your centered image in the source code:
        <p>
          <span style="text-decoration: underline;"> <ac:image ac:align="center" ac:height="150">
              <ri:attachment ri:filename=“example.jpg"/>
            </ac:image> </span>
        </p>
        
      3. Removed ac:align="center”
      4. Change the first <p> to <p style="text-align: center;”>
      5. End result should be:
        <p style="text-align: center;">
          <span style="text-decoration: underline;"> <ac:image ac:height="150">
              <ri:attachment ri:filename=“example.jpg"/>
            </ac:image> </span>
        </p>
        
      6. PDF should now export with the center aligned image

        1. PageView.png
          127 kB
          Shawn C
        2. PDFExport.pdf
          55 kB
          Shawn C
        3. PDFScreenshot.png
          67 kB
          Shawn C

            [CONFSERVER-38734] Images Aligned Center in a Panel Macro Do Not Appear in PDF Export

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2896828 ] New: CONFSERVER Bug Workflow v4 [ 2990020 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2788311 ] New: JAC Bug Workflow v3 [ 2896828 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2719100 ] New: JAC Bug Workflow v2 [ 2788311 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387511 ] New: JAC Bug Workflow [ 2719100 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2263060 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387511 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2220252 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2263060 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2157939 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2220252 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1942230 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2157939 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1723756 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1942230 ]
            jonah (Inactive) made changes -
            Description Original: h3. Summary
            Embedded images in a Panel-type macro (Panel, Warning, Info, Note, Tip) which are align Center do not appear when the page is exported to PDF

            h3. Environment
            * 5.9.1-OD-62

            h3. Steps to Reproduce
            # Create a page with a Panel Macro (Panel, Warning, Info, Note, Tip)
            # Add an Image and align Center
            #- !PageView.png|thumbnail!
            # Save Page and Export to PDF

            h3. Expected Results
            Image is displayed in Panel

            h3. Actual Results
            !PDFScreenshot.png|thumbnail!
             
            h3. Notes

            h3.Workaround
            Use the [Confluence Source Editor|https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor/server/overview] to adjust the storage format
            # Go into the source code
            # Find your centered image in the source code: {code}<p>
              <span style="text-decoration: underline;"> <ac:image ac:align="center" ac:height="150">
                  <ri:attachment ri:filename=“example.jpg"/>
                </ac:image> </span>
            </p>
            {code}
            # Removed *ac:align="center”*
            # Change the first *<p>* to *<p style="text-align: center;”>*
            # End result should be: {code}<p style="text-align: center;">
              <span style="text-decoration: underline;"> <ac:image ac:height="150">
                  <ri:attachment ri:filename=“example.jpg"/>
                </ac:image> </span>
            </p>
            {code}
            # PDF should now export with the center aligned image
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-38734].
              {panel}

            h3. Summary
            Embedded images in a Panel-type macro (Panel, Warning, Info, Note, Tip) which are align Center do not appear when the page is exported to PDF

            h3. Environment
            * 5.9.1-OD-62

            h3. Steps to Reproduce
            # Create a page with a Panel Macro (Panel, Warning, Info, Note, Tip)
            # Add an Image and align Center
            #- !PageView.png|thumbnail!
            # Save Page and Export to PDF

            h3. Expected Results
            Image is displayed in Panel

            h3. Actual Results
            !PDFScreenshot.png|thumbnail!
             
            h3. Notes

            h3.Workaround
            Use the [Confluence Source Editor|https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor/server/overview] to adjust the storage format
            # Go into the source code
            # Find your centered image in the source code: {code}<p>
              <span style="text-decoration: underline;"> <ac:image ac:align="center" ac:height="150">
                  <ri:attachment ri:filename=“example.jpg"/>
                </ac:image> </span>
            </p>
            {code}
            # Removed *ac:align="center”*
            # Change the first *<p>* to *<p style="text-align: center;”>*
            # End result should be: {code}<p style="text-align: center;">
              <span style="text-decoration: underline;"> <ac:image ac:height="150">
                  <ri:attachment ri:filename=“example.jpg"/>
                </ac:image> </span>
            </p>
            {code}
            # PDF should now export with the center aligned image

              Unassigned Unassigned
              scranford Shawn C (Inactive)
              Affected customers:
              2 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: