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

    XMLWordPrintable

Details

    Description

      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

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: