abdullah.mamun Posted January 31, 2017 Share Posted January 31, 2017 Hi.I have prepared a custom font jar and add the jar in /jasperreports-server-cp-6.2.1/apache-tomcat/webapps/jasperserver/WEB-INF/lib directory.In my jrxml i Used these code for pdf<property name="net.sf.jasperreports.default.pdf.encoding" value="Identity-H"/><property name="net.sf.jasperreports.default.pdf.font.name" value="Malgun Gothic"/><textElement textAlignment="Center" verticalAlignment="Middle"><font fontName="Malgun Gothic" size="10" pdfFontName="Malgun Gothic" pdfEncoding="Identity-H"/></textElement>[/code]When I try to export as pdf I get the following error{"message":"Could not load the following font: npdfFontName: MalgunnpdfEncoding: Identity-HnisPdfEmbedded : true","errorCode":"export.execution.rejected"}[/code]I do not know what I am missing ?Any help would be highly appreciated. Link to comment Share on other sites More sharing options...
hozawa Posted January 31, 2017 Share Posted January 31, 2017 pdf properties are obsolete. Don't use them. Use custom fonts like any other fonts - there's no need to specify a pdf font. Link to comment Share on other sites More sharing options...
abdullah.mamun Posted February 1, 2017 Author Share Posted February 1, 2017 How to use custom font in jrxml then ? Link to comment Share on other sites More sharing options...
abdullah.mamun Posted February 1, 2017 Author Share Posted February 1, 2017 How to use custom font in jrxml then ? Link to comment Share on other sites More sharing options...
hozawa Posted February 1, 2017 Share Posted February 1, 2017 Just specify your custom font name in font. Your custom font will be used in pdf export too.http://community.jaspersoft.com/wiki/custom-font-font-extension 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