Details
-
Bug
-
Resolution: Cannot Reproduce
-
Low
-
None
-
None
Description
When using the following CSS to hide page title:
div.pagetitle:first-child { visibility:hidden }
Attempt to create PDF export will produce a stack trace:
com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document C:\confluence\standalone\mysql\data-3.0.0_01\temp\pdfexport-20091201-145808-3\sand-1835016-145808-4.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:111) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:38) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:68) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:20) 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.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55)
The visibility:hidden parameter cannot be used either. No stack trace, but the whole content will be invisible along with the page title.
The work around is to make the text colour the same as the background colour (assuming your background colour is white):
div.pagetitle:first-child { color:white; }