Getting crash using chinese characters
I need to print labels containing chinese characters.
I followed http://mdahlman.wordpress.com/2010/05/28/jaspersoft-v3-7-font-extensions/ and I can get things to work in iReports and it's export to pdf facility and it comes out as it should, ie and if I look in the PDF properties for this pdf file, I see which is what I would expect (the ArialUnicodeMS is the font specified for the text element containing the chinese characters).
However, when I print in OPV I get the crash shown below. As per the above reference I have exported the ArialUnicodeMS font to a jar, and I have included included a reference to this as per the snippet below
and I also put a copy of the arialUnicodeMS.jar in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\openvpms\WEB-INF\lib
Any ideas as to what is going wrong and how I correct it.
Regards, Tim G
<error-report> <version>1.7-SNAPSHOT</version> <revision>5349</revision> <message>Failed to generate report: Could not load the following font : pdfFontName : Helvetica pdfEncoding : Identity-H isPdfEmbedded : true</message> <exception> <type>org.openvpms.report.ReportException</type> <message>Failed to generate report: Could not load the following font : pdfFontName : Helvetica pdfEncoding : Identity-H isPdfEmbedded : true</message> <stackTrace> <trace>org.openvpms.report.jasper.AbstractJasperIMReport.export(AbstractJasperIMReport.java:468)</trace> <trace>org.openvpms.report.jasper.AbstractJasperIMReport.generate(AbstractJasperIMReport.java:295)</trace> <trace>org.openvpms.web.component.im.report.Reporter.getDocument(Reporter.java:143)</trace> <trace>org.openvpms.web.component.im.print.AbstractIMPrinter.getDocument(AbstractIMPrinter.java:121)</trace> <trace>org.openvpms.web.component.print.InteractivePrinter.getDocument(InteractivePrinter.java:203)</trace> <trace>org.openvpms.web.component.print.InteractivePrinter.getDocument(InteractivePrinter.java:190)</trace> <trace>org.openvpms.web.component.print.InteractivePrinter.doPrintPreview(InteractivePrinter.java:417)</trace> <trace>org.openvpms.web.component.print.InteractivePrinter$1.onPreview(InteractivePrinter.java:341)</trace> <trace>org.openvpms.web.component.print.PrintDialog$1.onAction(PrintDialog.java:192)</trace> <trace>org.openvpms.web.echo.event.ActionListener.actionPerformed(ActionListener.java:40)</trace> <trace>nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135)</trace> <trace>echopointng.ButtonEx$1.actionPerformed(ButtonEx.java:120)</trace> <trace>nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70)</trace> <trace>echopointng.model.DefaultButtonModelEx.doAction(DefaultButtonModelEx.java:51)</trace> <trace>echopointng.ButtonEx.processInput(ButtonEx.java:202)</trace> <trace>nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116)</trace> <trace>nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89)</trace> <trace>nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:471)</trace>
Re: Getting crash using chinese characters
I use custom fonts as well what fonts are in the arialUnicode.jar
Is Helvitica in that package if not does a version of ireports loaded on the server have access to it, my Windows 7 machine does NOT have it present.
The error has far as I can see is that Helvitica is not present.
Re: Getting crash using chinese characters
Ben - THANK YOU - installing any crap helvitica font solved the problem on my Win7 Laptop. [Which is caused by JR putting in an empty stub at the beginning of the PDF which calls for Helvitica.]
So the rule is - if you use custom fonts, make sure that a helvitica font is available on the server machine.
However, my Win2003 server is still having the problem so I need to play with that some more.
Regards, Tim G