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

      Caused by: java.lang.IllegalArgumentException: Font size too small: 0.0
      	at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source)
      	at org.xhtmlrenderer.pdf.ITextOutputDevice.drawString(ITextOutputDevice.java:485)
      	at org.xhtmlrenderer.pdf.ITextTextRenderer.drawString(ITextTextRenderer.java:42)
      	at org.xhtmlrenderer.render.AbstractOutputDevice.drawText(AbstractOutputDevice.java:72)
      	at org.xhtmlrenderer.render.InlineText.paint(InlineText.java:129)
      	at org.xhtmlrenderer.render.InlineLayoutBox.paintInline(InlineLayoutBox.java:276)
      	at org.xhtmlrenderer.layout.Layer.paintInlineContent(Layer.java:274)
      	at org.xhtmlrenderer.layout.Layer.paint(Layer.java:346)
      	at org.xhtmlrenderer.layout.Layer.paintLayers(Layer.java:165)
      	at org.xhtmlrenderer.layout.Layer.paint(Layer.java:351)
      	at org.xhtmlrenderer.pdf.ITextRenderer.paintPage(ITextRenderer.java:384)
      	at org.xhtmlrenderer.pdf.ITextRenderer.writePDF(ITextRenderer.java:348)
      	at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:315)
      	at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:246)
      	at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:77)
      	... 298 more
      

            [CONFSERVER-37906] PDF export fails when font-size is 0

            Atlassian Update - 14 April 2025

            Hi,

            At Atlassian, our goal is to ensure we’re providing the best experience for our customers. With our new Data Center strategy, Atlassian's focus is on security, compliance, and performance and is a key driver in prioritizing bugs. Closing the bugs that do not fall into those categories will allow us to focus on the ones in the most current versions of our products.

            This bug is being closed due to a lack of engagement in the last four years, including no new watchers, votes, or comments; this inactivity suggests a low impact.

            Please note the comments on this thread are not being monitored.

            You can read more about our bug fix policy here and how we prioritize bugs.

            To learn more about our recent investments in Confluence Data Center, please check our public roadmap and dashboards containing recently resolved issues, current work, and future plans.

            Kind regards,
            Confluence Data Center

            George Varghese added a comment - Atlassian Update - 14 April 2025 Hi, At Atlassian, our goal is to ensure we’re providing the best experience for our customers. With our new Data Center strategy, Atlassian's focus is on security, compliance, and performance and is a key driver in prioritizing bugs. Closing the bugs that do not fall into those categories will allow us to focus on the ones in the most current versions of our products. This bug is being closed due to a lack of engagement in the last four years , including no new watchers, votes, or comments; this inactivity suggests a low impact. Please note the comments on this thread are not being monitored. You can read more about our bug fix policy here and how we prioritize bugs. To learn more about our recent investments in Confluence Data Center, please check our public roadmap and dashboards containing recently resolved issues , current work, and future plans . Kind regards, Confluence Data Center

            We have exactly the same issue, we have a testreport which is displayed with junit macro, this cant be exported via the pdf function,.. I talked to Atlassian and they have no workaround,.. So atlassion should to something on this case

            Deleted Account (Inactive) added a comment - We have exactly the same issue, we have a testreport which is displayed with junit macro, this cant be exported via the pdf function,.. I talked to Atlassian and they have no workaround,.. So atlassion should to something on this case

            We have this issue and definitely need resolution.  Any updates?

            Daniel Shock added a comment - We have this issue and definitely need resolution.  Any updates?

            Hello,

            We have the same issue. Any news concerning resolution?

            Best regards,

            Open Europa Wikis Team added a comment - Hello, We have the same issue. Any news concerning resolution? Best regards,

            Antonio D'Errico added a comment - - edited

            Hello,

            we are running in the same problem, but we are running the version 5.2.5:

            Cause

            com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/home/confluence/temp/pdfexport-20150914-140915-1535-1915/SWISSGRID-KWSD-Version2.0.0-140915-1535-1916.pdf
            at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111)

            caused by: java.lang.IllegalArgumentException: Font size too small: 0.0
            at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source)
            Stack Trace:[hide]

            com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/home/confluence/temp/pdfexport-20150914-140915-1535-1915/SWISSGRID-KWSD-Version2.0.0-140915-1535-1916.pdf

            Antonio D'Errico added a comment - - edited Hello, we are running in the same problem, but we are running the version 5.2.5: Cause com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/home/confluence/temp/pdfexport-20150914-140915-1535-1915/SWISSGRID-KWSD-Version2.0.0-140915-1535-1916.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111) caused by: java.lang.IllegalArgumentException: Font size too small: 0.0 at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source) Stack Trace: [hide] com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/home/confluence/temp/pdfexport-20150914-140915-1535-1915/SWISSGRID-KWSD-Version2.0.0-140915-1535-1916.pdf

              Unassigned Unassigned
              428162336612 Marcin Wisnicki
              Affected customers:
              6 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: