lordburningleaf Posted November 23, 2010 Share Posted November 23, 2010 Dear all,I have a problem with the fonts in PDF.In my report the textfields should be able to print unicode texts. For that i found a solution in a forum:I added the font arial.ttf into the repository, set "Pdf Embedded" true and the "Pdf Encoding" to "Identity-H". (see attachment)When i run the Report from the Jasperserver (http:localhost/jasperserver), everything works fine when i generate the PDF report. But when i run the same PDF report from my WebApp, then i get following error: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font : pdfFontName : repo:arial.ttfpdfEncoding : Identity-HisPdfEmbedded : true Has anybody an idea whats wrong? Because it's the same report! Thank you all very much!Post Edited by lordburningleaf at 11/23/2010 14:22 Link to comment Share on other sites More sharing options...
lordburningleaf Posted November 24, 2010 Author Share Posted November 24, 2010 Hey all, i solved the problem =)You have to set the full path to the "PDF font name" property, e.g. "C:/WINDOWS/fonts/arial.ttf".I also tried to load the fonts into the repository ("repo:arial.ttf"), but that only worked with the jasperserver, not with my application. BR Mark Link to comment Share on other sites More sharing options...
hozawa Posted December 19, 2010 Share Posted December 19, 2010 Right, items registered in JasperServer need rights to access resources usually by registering it to a session.Take caution on those Windows font files. They have copyrights are MS doesn't allow users to use them outside Windows.Post Edited by hozawa at 12/19/2010 08:14 Link to comment Share on other sites More sharing options...
DavidWarner Posted July 12, 2017 Share Posted July 12, 2017 afetr changing the path same error is coming.. please solve my problem... I need to Export through that font Please reply as soon as possible Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now