Unable to Export to PDF due to Invalid CSS

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

症状

When exporting Page or Space to PDF, the following appears in the atlassian-confluence.log:

2012-09-26 22:48:02,605 ERROR [http-8443-8] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action -- url: /spaces/flyingpdf/pdfpageexport.action | userName: admin | referer: https://confluence/display/SANDBOX/Excel+Export+Test com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /opt/app/confluence/data/temp/pdfexport-20120926-260912-2248-1/SANDBOX-ExcelExportTest-260912-2248-2.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:39) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:78) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:28) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:64) .... 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) ....

原因

The export fails due to invalid Stylesheet set in your Confluence Admin or Space Admin.

ソリューション

  • Remove the PDF Stylesheet in Confluence Admin > Global PDF Stylesheet and Space Admin > PDF Stylesheet

  • Try to export to PDF again

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。