user2556254 user2556254 - 1 year ago 97
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?

Answer Source
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download