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

PDF Export - Emoticons Are not Rendered When Placed inside Table Cells

      We just experienced another bug of the PDF export when exporting pages that contains tables where emoticons are inside table cells.

      Steps to reproduce

      1. Create a page like:
        <p>The table below compares something, e.g. (<ac:emoticon ac:name="green-star" />), &quot;partially&quot; (<ac:emoticon ac:name="yellow-star" />), to &quot;limited&quot; (<ac:emoticon ac:name="blue-star" />) and &quot;no&quot; (<ac:emoticon ac:name="red-star" />) provision.</p>
        <p> </p>
        <table>
        <tbody>
        <tr>
        <td> </td>
        <td><strong>Column A</strong></td>
        <td><strong>Column B</strong></td></tr>
        <tr>
        <td colspan="3"><span style="color: rgb(0,128,0);"><strong>Functional Properties</strong></span></td></tr>
        <tr>
        <td>Enter some text</td>
        <td>
        <div align="center">
        <p><ac:emoticon ac:name="green-star" /></p></div></td>
        <td>
        <div align="center">
        <p><ac:emoticon ac:name="green-star" /></p>
        <p>some text</p></div></td></tr>
        <tr>
        <td colspan="3"><strong>Heading 2</strong></td></tr>
        <tr>
        <td>  Point A</td>
        <td>
        <div align="center"><ac:emoticon ac:name="green-star" /></div></td>
        <td>
        <div align="center"><ac:emoticon ac:name="red-star" /></div></td></tr>
        <tr>
        <td> Point B</td>
        <td>
        <div align="center"><ac:emoticon ac:name="green-star" /></div></td>
        <td>
        <div align="center"><ac:emoticon ac:name="blue-star" /></div></td></tr></tbody></table>
        
      2. Observe that the emoticons are rendered on the page
      3. Export the page to PDF
      4. Observe that the emoticons are rendered outside the table, but those inside the table are not rendered

      Any clue why this issue exists?

        1. 2015-12-17_14h20_36.png
          2015-12-17_14h20_36.png
          10 kB
        2. 2015-12-17_14h20_49.png
          2015-12-17_14h20_49.png
          12 kB
        3. confluence_page_emoticons.png
          confluence_page_emoticons.png
          59 kB
        4. confluence_pdf_emoticons_without_styles.png
          confluence_pdf_emoticons_without_styles.png
          68 kB
        5. confluence_pdf_emoticons.png
          confluence_pdf_emoticons.png
          48 kB

            [CONFSERVER-40269] PDF Export - Emoticons Are not Rendered When Placed inside Table Cells

            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.

            Same issue here. Worked in 6.7.1 - does not work in 6.10.1 Either the icons are massive, or if you enter the emoticon from scratch (not by copy and paste from elsewhere), it is not rendered in PDF export at all. Based on experience from similar issues, this will sit here for another few years. Atlassian - one big sorry excuse for QA.

            Libor Laubacher added a comment - Same issue here. Worked in 6.7.1 - does not work in 6.10.1 Either the icons are massive, or if you enter the emoticon from scratch (not by copy and paste from elsewhere), it is not rendered in PDF export at all. Based on experience from similar issues, this will sit here for another few years. Atlassian - one big sorry excuse for QA.

            FYI - I have (kind of) found a workaround for this problem:

            Instead of inserting emoticons via Insert -> Emoticons, I took screenshots of all emoticons, cleaned them up in photoshop (saved as PNG with transparent background) and attached them to our Confluence space. Then I removed the faulty emoticons and inserted the images for these emoticons instead. Now the icons are displayed correctly in the PDF.

            I know it's not really a convenient workaround, but it may help you if the issue is pressing.

            Birgit Matuolis added a comment - FYI - I have (kind of) found a workaround for this problem: Instead of inserting emoticons via Insert -> Emoticons, I took screenshots of all emoticons, cleaned them up in photoshop (saved as PNG with transparent background) and attached them to our Confluence space. Then I removed the faulty emoticons and inserted the images for these emoticons instead. Now the icons are displayed correctly in the PDF. I know it's not really a convenient workaround, but it may help you if the issue is pressing.

            Also, please update affected version to reflect that 6.8.1 is also affected.

            Birgit Matuolis added a comment - Also, please update affected version to reflect that 6.8.1 is also affected.

            Birgit Matuolis added a comment - - edited

            I found the same problem in our newly updated Confluence 6.8.1 version. It was never a problem in any earlier versions.

            Some emoticons in tables are randomly missing in the PDF space export. Mostly, the Minus-emoticon  is affected, but some others are also affected. We also have the -fs-fit-images-to-width: 100% !important; fix in our PDF styles, but even removing all PDF styles did not change the outcome, so I don't think this has anything to do with it.

            In total, I tried the following fixes:

            • Removed all PDF Export styles --> Same issue, but PDF is now even uglier (icons are too big, etc.)
            • Tried to manually replace the missing icons in the PDF Page
              • Via Insert -> Emoticon
              • By copying and pasting existing (and properly printed) emoticons into the faulty cells.

            None of these things worked at all .

            Confluence page in Browser Same page in PDF (with styles) Same page in PDF (without styles)

             

            Please fix this, as the overhead for getting decent-looking and fully functional PDF Exports is getting unreasonably huge these days.

            Birgit Matuolis added a comment - - edited I found the same problem in our newly updated Confluence 6.8.1 version. It was never a problem in any earlier versions. Some emoticons in tables are randomly missing in the PDF space export. Mostly, the Minus-emoticon  is affected, but some others are also affected. We also have the  -fs-fit-images-to-width: 100% !important; fix in our PDF styles, but even removing all PDF styles did not change the outcome, so I don't think this has anything to do with it. In total, I tried the following fixes: Removed all PDF Export styles --> Same issue, but PDF is now even uglier (icons are too big, etc.) Tried to manually replace the missing icons in the PDF Page Via Insert -> Emoticon By copying and pasting existing (and properly printed) emoticons into the faulty cells. None of these things worked at all . Confluence page in Browser Same page in PDF (with styles) Same page in PDF (without styles)   Please fix this, as the overhead for getting decent-looking and fully functional PDF Exports is getting unreasonably huge these days.

            OK I figured: in our Style Sheet we added

            /* resizes pictures */
            img
            {
            page-break-inside: avoid;
            -fs-fit-images-to-width: 100% !important;
            /* -fs-fit-images-to-width: 466pt !important; */
            /* image-resolution: 10dpi; - this parameter does not work at all in confluence */
            }

            because Confluence had other problems with picture formatting and this has been the workaround.

            Maybe it helps for troubleshooting?

            Christian Sprenger added a comment - OK I figured: in our Style Sheet we added /* resizes pictures */ img { page- break -inside: avoid; -fs-fit-images-to-width: 100% !important; /* -fs-fit-images-to-width: 466pt !important; */ /* image-resolution: 10dpi; - this parameter does not work at all in confluence */ } because Confluence had other problems with picture formatting and this has been the workaround. Maybe it helps for troubleshooting?

            After some experimenting I found out that the Emoticons are not exported on PDF when in Cells.

            Funily enough, on my Personal Space it works and there I don't use a local Stylesheet but global.

            We use V5.10.3

            Christian Sprenger added a comment - After some experimenting I found out that the Emoticons are not exported on PDF when in Cells. Funily enough, on my Personal Space it works and there I don't use a local Stylesheet but global. We use V5.10.3

            Is there any update on this?

            Jens Kasperek (Bosch GmbH) (Inactive) added a comment - Is there any update on this?

              mbereznitsky Mark Bereznitsky
              954d18f1a54b Jens Kasperek (Bosch GmbH)
              Affected customers:
              10 This affects my team
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: