Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to show Cyrillic letters in PDF


    akonkin
    • Features: Exporters, Reports Product: JasperReports® Library

    Question:

    With the User input parameters, user will following sample parameter text.

    CASE 1. Enter the special characters E.G. : партне66$@%*!р

    CASE 2. Enter some internationalization text.

    If we enter the text like CASE1, parameter text is not showing as it is with PDF and CSV reports. We have tested with encoding="ISO-8859-1" also, and the issue is the same.

    Answer:

    If you would like to render Cyrillic font in your report:

    • Use physical font and not a logical one (tahoma.ttf) in the text fields in your report (for example Tahoma instead of SansSerif).

    • Add this font to iReport, set it as the font that should be embedded to PDF, define a proper encoding for this font.

    For the details please refer to the screenshot (font_configuration).

    font_configuration.png.d1256703d71c423b46daf254b1e123eb.png

    I have attached to the article 2 screenshots, physical font (tahoma.ttf) and a sample of the report that uses this font.

    font_configuration.png.16a88db4a2f1dd15f53c14d80c7dd50c.png

    tahoma.ttf

    partnertransactionsummaryfds1.jrxml

    tahoma.jar


    User Feedback

    Recommended Comments

    There are no comments to display.



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