Jump to content
Changes to the Jaspersoft community edition download ×

PDF Rendering


Recommended Posts


I'm struggling a bit with pdf rendering and fonts.

I have created a very basic template with some styled text (bold and italic included).

There are no fonts referenced in the design, but still the bold does not come up in the pdf file. I understand this is because I need to add a mapping for the fonts used. But since I didn't specify a special font, i presume a default font is used by Jasper (is this Arial?)?

And why is the mapping for this default font not automatically set?

Or am I missing something?




Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi --


I'm not sure what the default PDF font is, but I've always specified my pdfFontName attribute for the text.

Most PDF readers (like acrobat) have the following built-in fonts:

Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique

Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique

Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic




Arial is a typeface developed my microsoft that is very similar to Helvetica. So, if you like that font's look, set your pdfFontName="Helvetica" or pdfFontName="Helvetica-Bold", the latter for bold



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...