Problem with accents after generating pdf file with java

206 views Asked by At

i'm working with liferay 7.2 on local and after generating pdf, working so fine for me

after deploying on test site the pdf is generated without recognizing letters with accents like é a collegue told me that the problem is caused due to the site which is using linux as a system

i m using a pdf writer folowing this code

    Document document = new Document(PageSize.A4);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PdfWriter writer = PdfWriter.getInstance(document, baos);
    Font font_titre = new Font(Font.TIMES_ROMAN, 14, Font.BOLD, coul_bleu);
    ph1 = new Phrase("Activités", font_titre);

I'm getting this :

problem after generating pdf

0

There are 0 answers