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

Export to PDF, Centered Images are not included in .pdf file

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

      PDF Exports of wiki page with centered images don't include images.

      Steps to reproduce:

      1. Create a page and insert an image jpg, png etc...
      2. Export the page to PDF. You should see that the image(s) did export.
      3. Edit the page and align the image to the center.
      4. Export the page to PDF again.
        Expected result: Image shows in the center.
        Actual result: Image is not displayed.

      Cause:
      The alignment done using the image tags is not being exported:

      This is the "Storage Format" of a centered image that is not exported to PDF:

      <p><ac:image ac:align="center"><ri:attachment ri:filename="image.jpg"><ri:page ri:content-title="Images Page" ri:space-key="KB" /></ri:attachment></ac:image></p>
      

      and this is the one of an image centered by using the workaround and is exported to PDF (without alignment)

      <p style="text-align: center;"><ac:image><ri:attachment ri:filename="image.jpg"><ri:page ri:content-title="Images Page" ri:space-key="KB" /></ri:attachment></ac:image></p>
      

      Workaround:
      center-align the cursor before including the image to the page.
      The image will be added in the center and will be displayed in PDF exports.

            [CONFSERVER-35945] Export to PDF, Centered Images are not included in .pdf file

            Saba Taseer made changes -
            Remote Link Original: This issue links to "Page (Bulldog)" [ 390108 ]
            Saba Taseer made changes -
            Remote Link Original: This issue links to "Page (Bulldog)" [ 387345 ]
            set-jac-bot made changes -
            Usman Khalid (Inactive) made changes -
            Labels Original: enterprise-backlog loyalty pdf pdf-export scale-team New: loyalty pdf pdf-export scale-team
            Usman Khalid (Inactive) made changes -
            Labels Original: enterprise-backlog loyalty pdf pdf-export New: enterprise-backlog loyalty pdf pdf-export scale-team

            Minh Tran added a comment - - edited

            A fix for this issue is available to Server and Data Center customers in Confluence 6.13.0
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Minh Tran added a comment - - edited A fix for this issue is available to Server and Data Center customers in Confluence 6.13.0 Upgrade now or check out the Release Notes to see what other issues are resolved.
            Minh Tran made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2889530 ] New: CONFSERVER Bug Workflow v4 [ 3006010 ]
            Said made changes -
            QA Demo Status New: Not Needed [ 14332 ]
            QA Kickoff Status New: Not Needed [ 14236 ]
            Mark Bereznitsky made changes -
            Epic Link New: CONFSRVDEV-7919 [ 1037680 ]

              mbereznitsky Mark Bereznitsky
              jrobison1 JordanA
              Affected customers:
              37 This affects my team
              Watchers:
              35 Start watching this issue

                Created:
                Updated:
                Resolved: