Bruno has a great example of this in his SayPeace example in chapter 9 of his book. Arabic glyphs are written as double byte chars. Your encoding should be BaseFont.IDENTITY_H, and you should be using a unicode font.
dayvidpow wrote: > How can i add Arabic text to a PDF and have it displayed in the PDF ?. > Currently i am using the following code however, this does not display the > Arabic characters: > > BaseFont bf = BaseFont.createFont(BaseFont.TIMES_ROMAN, BaseFont.CP1252, > BaseFont.EMBEDDED); > column.addText(new Phrase(LINE_LEADING, arabicTitleStr , new > Font(bf,FONTSIZE_3))); > column.go(); > > Can anyone say what else will i need to do for this code to work? I am > following the example from the online Tutorial RightToLeft.java and > SayPeace.java. > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
