-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 10.2.2, 10.2.7
-
Component/s: Page - Export / Import
-
None
-
2
-
Severity 3 - Minor
-
18
Issue Summary
Not able to export page to PDF when we have a custom font installed, when you are on Windows and Microsoft SQL database, and have a network share as a shared folder.
Steps to Reproduce
- Install Confluence version 10.2.2 on OS: Windows, Database: Microsoft SQL
- Shared folder set to a network share
- Install a custom font file via General Configuration-> PDF Export Language
- Select any page that has special characters or letters like Lithuanian letters, and click on export to PDF
Expected Results
A pdf file should get generated
Actual Results
Oops - an error has occurred screen will appear. 
On enabling debug logs for class: com.atlassian.confluence.impl.util.sandbox, we can see the logs below:
2026-03-31 05:06:16,069 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$buildConfig$0 worker0: Caused by: java.io.IOException: /EC2AMAZ-RBRBV0I/Shared home/fonts/Helvetica.ttf not found as file or resource. | traceId: 22b964f85ea46708 . . . 2026-03-31 05:06:16,447 WARN [http-nio-8090-exec-3 url: /spaces/flyingpdf/pdfpageexport.action; user: admin] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:\n ->[null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1759258761) -- url: /spaces/flyingpdf/pdfpageexport.action | userName: admin | referer: http://localhost:8090/spaces/TP/pages/327693/Testing+pdf+file | traceId: 22b964f85ea467082026-03-31 05:06:16,461 ERROR [http-nio-8090-exec-3 url: /spaces/flyingpdf/pdfpageexport.action; user: admin] [apache.struts2.dispatcher.DefaultDispatcherErrorHandler] sendErrorResponse Exception occurred during processing request: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. There was an error converting the page \"Testing pdf file\". <a href=\"https://docs.atlassian.com/confluence/docs-102/PDF+export+in+Confluence+Data+Center\">Learn more</a> -- url: /spaces/flyingpdf/pdfpageexport.action | userName: admin | referer: http://localhost:8090/spaces/TP/pages/327693/Testing+pdf+file | traceId: 22b964f85ea46708java.lang.RuntimeException: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. There was an error converting the page "Testing pdf file". <a href="https://docs.atlassian.com/confluence/docs-102/PDF+export+in+Confluence+Data+Center">Learn more</a> at com.atlassian.confluence.extra.flyingpdf.impl.ExportPageAsPdfAction.doExecute(ExportPageAsPdfAction.java:70) at com.atlassian.confluence.extra.flyingpdf.impl.PdfExportSemaphore.run(PdfExportSemaphore.java:28) at com.atlassian.confluence.extra.flyingpdf.impl.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:39) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at ognl.OgnlRuntime.invokeMethodInsideSandbox(OgnlRuntime.java:1245) at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:1230) at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1958) . . Caused by: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. There was an error converting the page "Testing pdf file". <a href="https://docs.atlassian.com/confluence/docs-102/PDF+export+in+Confluence+Data+Center">Learn more</a> at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxXmlToPdfConverter.convertXhtmlToPdf(SandboxXmlToPdfConverter.java:95) at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxPdfExporterService.renderPdf(SandboxPdfExporterService.java:332) at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxPdfExporterService.createPdf(SandboxPdfExporterService.java:318) at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxPdfExporterService.createPdfForPage(SandboxPdfExporterService.java:226) at com.atlassian.confluence.extra.flyingpdf.impl.DelegatingPdfExporterService.createPdfForPage(DelegatingPdfExporterService.java:54) at com.atlassian.confluence.extra.flyingpdf.impl.BigBrotherPdfExporterService.createPdfForPage(BigBrotherPdfExporterService.java:122) at com.atlassian.confluence.extra.flyingpdf.impl.ExportPageAsPdfAction.doExecute(ExportPageAsPdfAction.java:49) ... 496 moreCaused by: com.atlassian.confluence.util.sandbox.SandboxCrashedException: Sandbox has crashed while serving the request at com.atlassian.confluence.impl.util.sandbox.SandboxProcess.tryToThrowSpecificException(SandboxProcess.java:173) at com.atlassian.confluence.impl.util.sandbox.SandboxProcess.execute(SandboxProcess.java:138) at com.atlassian.confluence.impl.util.sandbox.SandboxLocalProcessPool.execute(SandboxLocalProcessPool.java:108) at com.atlassian.confluence.impl.util.sandbox.ConfluenceSandboxPoolFactory$LazySandboxPool.execute(ConfluenceSandboxPoolFactory.java:99) at com.atlassian.confluence.impl.util.sandbox.DefaultSandbox.execute(DefaultSandbox.java:36) at com.atlassian.confluence.extra.flyingpdf.sandbox.PdfExportSandbox.execute(PdfExportSandbox.java:50) at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxXmlToPdfConverter.convertXhtmlToPdf(SandboxXmlToPdfConverter.java:83) ... 502 moreCaused by: java.io.EOFException
Workaround
- Go to General Configuration → PDF Stylesheet → click on edit, add below:
@font-face {
font-family: 'HelveticaCustom';
src: url('file:///C:/confluence-fonts/Helvetica.ttf');
-fs-pdf-font-embed: embed;
-fs-pdf-font-encoding: Identity-H;
}
body {
font-family: 'HelveticaCustom', Arial, sans-serif;
- Then click on Save
- Note: The file:/// path must be an absolute path on the Confluence server’s filesystem (and readable by the Confluence service user), it should not be a network share folder.