Jump to content
Changes to the Jaspersoft community edition download ×

Embedding fonts when report contains PDF


mo

Recommended Posts

Hallo!

I would like to generate a report in which I include some PDFs. I do this by using my own Renderer, which implements Jasper Reports Renderable and instanciate it in the jrxml-template. The actual PDF file is passed as parameter. So far, everything is fine. After filling process report is exported as PDF. However, the export-PDF does not contain the fonts that had been embedded in the original PDF but only the fonts needed for substitution. That - depending on the original fonts - might lead to a pretty ugly output (wrong kerning, i.e. letters overlap and alike). My font embedding/substitution is done by font extensions (see attached fonts.xml. I'm not too sure about the exportFonts-Tag, though.)

I guess that this might not only be a Jasper-specific question (e.g. how to extract the fonts from the original and make them available to JR). But has anybody a solution to this? Or an idea how to solve the problem (maybe I'm doing something wrong and there is no need to actually include the fonts if the PDF is correctly rendered.)? One hint: The PDF is not rendered as image. I want the PDF objects to be kept and be smoothly integrated into the exported PDF-document.

Maybe somebody already had the same problem - I would then be happy with some link (while investigating I could not find anything pointing in this direction). Thanks in advance!

Mo

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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