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

Export to PDF is failing if the page has no content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • None
    • None
    • None

    Description

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

      Summary

      Confluence pages without any character on the page cannot be exported to PDF.

      Environment

      • Confluence Cloud

      Steps to Reproduce

      1. Create a Confluence page
      2. Add a tittle, but no content
      3. Save the page and then try exporting to PDF

      Expected Results

      PDF file is generated

      Actual Results

      Cause
      com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf
          at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102)
      caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
          at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      Stack Trace:[hide]
      com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /data/jirastudio/confluence/home/temp/pdfexport-20150925-250915-1458-137/IRISDOC-Clients-250915-1458-138.pdf
      	at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102)
      	at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:49)
      	at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:111)
      	at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:27)
      	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)

      Workaround

      -

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              psilveira Paula Silveira
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: