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

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

XMLWordPrintable

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? 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
          PageView.png
          127 kB
        2. PDFExport.pdf
          55 kB
        3. PDFScreenshot.png
          PDFScreenshot.png
          67 kB

              Unassigned Unassigned
              scranford Shawn C
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: