AnnMary.Thomas Posted November 28, 2014 Posted November 28, 2014 Version - Jasper 5.6Use case: I have 100 text fields in my report. For that I have created a style say Style1 with Arial font, size 5, and bold = true. But the pdf report generated will not have these textfields in bold. The work around is to manually go and select each of these text fields and set PDF font to Helvetical bold. Then the report is proper. But again there are 2 problems associated with this.1) Manually setting 100 text fields is tedious. Again I cannot select all this together as these text fields are in 10 different List components.2) I also read in some forums where it says PDFFonts is obsolete and we need to use fonts-extension by adding jasperreports-fonts-xxx.jar into the classpath. But when I unzipped this jar and checked, it has only dejavuserif font. But I use Arial.can any one guide me which is the right approach
pspjasper Posted November 28, 2014 Posted November 28, 2014 Hi AnnMary.Thomas,in resposponse to your 2nd point i figured the same issue trying to create a pdf with OcrB font embedded and i can suggests you thishttp://www.codesuggestions.com/java/jasper-reports/adding-custom-fonts-to-jasper-reports/Following all the steps (and stopping and starting Tomcat after updating the JAR) make the report working correctly.Hope it help.
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