-
Bug
-
Resolution: Fixed
-
Medium
-
18
-
Severity 2 - Major
-
NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
PDF Exports of wiki page with centered images don't include images.
Steps to reproduce:
- Create a page and insert an image jpg, png etc...
- Export the page to PDF. You should see that the image(s) did export.
- Edit the page and align the image to the center.
- 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.
- duplicates
-
CONFCLOUD-32451 PDF preview omits some content, such as images
- Closed
- is duplicated by
-
CONFCLOUD-38734 Images Aligned Center in a Panel Macro Do Not Appear in PDF Export
- Closed
- is related to
-
CONFSERVER-35945 Export to PDF, Centered Images are not included in .pdf file
- Closed
- mentioned in
-
Page Loading...