Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] How to add Arabic text to a PDF

David Powell

2007-07-19

Replies:


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.





--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.