com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf

Atlassian JIRA | Giuliano Campos [Atlassian] | 3 years ago
  1. 0

    When you try to export a page with the below scripts to PDF file, you will face the following System Error: {code} Cause com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) Stack Trace:[hide] com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:38) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:78) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:28) {code} The script experiencing issues is attached as a text file in order to reproduce the same behaviour in different Confluence instances. *In this specific case the workaround is to remove the following code from the script: {code} #cover { background: url("") no-repeat scroll center center #026890; position: absolute; color: #ffffff; height: 100%; } {code} One of the customer also found out that @font-face rule in CSS is causing the same error too. Removing this will work to remedy the problem, but I believe Confluence needs to handle more gracefully PDF page export with HTML macro embedded.

    Atlassian JIRA | 3 years ago | Giuliano Campos [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf
  2. 0

    When you try to export a page with the below scripts to PDF file, you will face the following System Error: {code} Cause com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) Stack Trace:[hide] com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:38) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:78) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:28) {code} The script experiencing issues is attached as a text file in order to reproduce the same behaviour in different Confluence instances. *In this specific case the workaround is to remove the following code from the script: {code} #cover { background: url("") no-repeat scroll center center #026890; position: absolute; color: #ffffff; height: 100%; } {code} One of the customer also found out that @font-face rule in CSS is causing the same error too. Removing this will work to remedy the problem, but I believe Confluence needs to handle more gracefully PDF page export with HTML macro embedded.

    Atlassian JIRA | 3 years ago | Giuliano Campos [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf
  3. 0

    [CONF-34275] Could Not Export to PDF with Space Details Macro - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.confluence.importexport.ImportExportException: Exception rendering the PDF document C:\confluence\data-5.5.2\temp\pdfexport-20140715-150714-1626-19\PE-12189697-150714-1626-20.pdf
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If the title of a page in Confluence contains the colon character then it fails when a user attempts to use "Export to PDF" on a page when Confluence is running on Windows as it attempts to use the invalid character in the generated PDF's file name. {panel:title=example character} : {panel} The result is a System Error page with the following... h3. Cause com.atlassian.confluence.importexport.ImportExportException: Failed to create a location and file for the PDF export. at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:53) caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) h3. Stack Trace: com.atlassian.confluence.importexport.ImportExportException: Failed to create a location and file for the PDF export. at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:53) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:39) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:98) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:27) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) ...

    Atlassian JIRA | 3 years ago | Isaac Davidson
    com.atlassian.confluence.importexport.ImportExportException: Failed to create a location and file for the PDF export.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.confluence.importexport.ImportExportException

      Exception while rendering the PDF document D:\Confluence\data\temp\pdfexport-20130701-010713-1406-1\DCAM-CAConfigurationAutomation(CCA)SupportReadinessTraining-010713-1406-2.pdf

      at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf()
    2. com.atlassian.confluence
      FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf
      1. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110)
      1 frame