Home
Analytics
Exporting a report as a pdf creates a corrupt pdf in Birt 3.7.2
rveeraraghav
<p>We have a j2ee app which uses Birt engine.</p><p>So far we have been using Birt engine 2.3.2 with our application and now I am in the middle of upgrading it to use Birt engine 3.7.2 as that is the version used by iHub2.</p><p> </p><p>The reports execute fine in JBoss, but when I try and export data as a pdf or when I print report as a pdf, I get exceptions. When I look at the expanded stack trace, this is what I see.</p><p> </p><p>...</p><p> </p><p>Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2265)
at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:298)
at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1213)
... 63 more
Caused by: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setFullCompression()V
at org.eclipse.birt.report.engine.emitter.pdf.PDFPageDevice.<init>(PDFPageDevice.java:88)
at org.eclipse.birt.report.engine.emitter.pdf.PDFRender.createPageDevice(PDFRender.java:67)
at org.eclipse.birt.report.engine.layout.emitter.PageDeviceRender.start(PageDeviceRender.java:118)
at org.eclipse.birt.report.engine.layout.emitter.PageEmitter.start(PageEmitter.java:58)
at org.eclipse.birt.report.engine.nLayout.LayoutEngine.start(LayoutEngine.java:327)</p><p> </p><p> </p><p> </p><p>Also exporting it as a power point file ( .ppt ) creates an empty ppt. However exporting the report as a word document works.</p><p> </p><p>I am not sure what I am missing. Do I have to install and/or download some other 3rd party jars?</p><p> </p><p>Thanks,</p><p> Ravi</p>
Find more posts tagged with
Comments
rveeraraghav
<p>Please ignore the question. I found out the problem. I had an older version of iText jar in the classpath causing the incompatibility.</p><p>Thanks,</p><p> Ravi</p>
mwilliams
<p>Great! Glad you found it!</p>