user2556254 user2556254 - 6 months ago 46
Android Question

Error of characters in PDF Polish language

I am generating PDF on android for the language of Poland with the iText library, version 2 (

). The problem is that the characters are wrong. Can anyone help me? How do I display the correct character from Poland in PDF?

Font fontNormal = FontFactory.getFont((winfontpath), encoding,BaseFont.EMBEDDED, 10, Font.NORMAL);
Chunk chunkpoland = new Chunk("hai welcome", fontNormal);
cell = new PdfPCell(new Phrase(chunkpoland ));

This is chinees font but you can assign polish font path