Does any body knows how to make itextpdf work with Cyrillic symbols?
I have code:
Font normal = FontFactory.getFont(String.valueOf(Font.FontFamily.HELVETICA), "CP1251", false, 13);
Document doc = new Document(PageSize.A4, 36, 36, 36, 65);
Paragraph paragraph = new Paragraph("ЗАПИСЬ!!!", normal);
doc.add(paragraph);
I saw that CP1251 works good BUT for a single char -while for texts - ("ЗАПИСЬ" in my example). And it displays all the chars overlapped onto each other.
What is wrong with my code? Thnx!
You can download font source from network (http://fonts4web.ru/Helvetica.html#test).
Save font in your resource directory.
Act as it is in example bellow: