jasper-reportsireport

How to show arabic,Hebrew,etc language fonts on jasper (iReport) reports


I have this simple tabular report with many columns with different types .

But when printing the report with rtf (word) extension

the columns with numbers or date appears on the report.
the columns with with Arabic content appear on the report.

But when printing the report with PDF extension

the columns with numbers or date appears on the report.
the columns with with Arabic content DOES NOT appear on the report.

I have tried many different fonts and changed properties like PDF embed and PDF encoding. What is the right way to do this ?


Solution

  • I faced this problem and its very annoying so to make it clear to all here how you do this

    on the field or label that may has Arabic content go to its properties by right click or on the properties pallet of it , and make these changes

    1. Check the box PDF embed
    2. Choose Identity-H (Unicode with horizontal writing) from PDF encoding
    3. Choose the font Arial if not there add it to the jasper fonts folder in the installation directory and add it to the class path in settings

    Rerun in PDF mode ... it will work