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

Image border is cut off in PDF export

XMLWordPrintable

      Issue Summary

      When exporting a Confluence page to PDF, if an image styled with border is inserted after the midpoint of a page (i.e., closer to the page bottom), the border is rendered partially on one page and partially on the next. This leads to a broken or incomplete border appearance in the PDF export.

      This behavior disrupts the layout and fails to maintain visual consistency for bordered elements, especially important for diagrams or visual references.

      Steps to Reproduce

      1. Add an image to a Confluence page ( after mid section ) 
      1.  
        Apply border on it 
         
      1. Export the page to PDF 
      2. Open the generated PDF

      Expected Results

      The entire image, including its border, should be displayed together on a single page or automatically pushed to the next page if it does not fully fit.

      Actual Results

      The image border is split between two pages.

      Workaround

      Apply the border with the below CSS

      img {
        border: 2px solid #000; /* Black border */
        padding: 4px;            
        margin: 10px 0;         
        display: block;
        max-width: 100%;
        height: auto;
      } 

              Unassigned Unassigned
              9219e3807eac Nitika Arora
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: