I use iText to generate pdf in my android app. I have problem with national
polish char. For example łąóż, this char are not display. Font is properly
imported, problem is only with encoding polish's characters

  doc.open(); 
  BaseFont bf = BaseFont.createFont("assets/fonts/arial.ttf",
     BaseFont.CP1250, BaseFont.EMBEDDED);
  Font font = new Font(bf, 12);
  String polish = "to jest jakis text łąóż";
  doc.add(new Paragraph(polish, font)); 
  doc.close();

I found this code on this forum in any topic, but doesn't work for me or
doesn't work in android app.
How can i fix that ?

Thx for suggestion

Andrzej Opiela



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/national-characters-in-iText-pdf-android-app-pdf-tp4659613.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to