Jump to content

PDF bold for textfields


AnnMary.Thomas

Recommended Posts

Version - Jasper 5.6

Use 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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 this

http://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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...