Xu ying chu wrote:
ByteArrayOutputStream out = new ByteArrayOutputStream();
  Document document = new Document(PageSize.A4, 50, 50, 50, 50);
Font fontText = new Font(FontFactory.getFont(FontFactory.HELVETICA));
Paragraph contentPar = new Paragraph(content,fontText);
I think maybe "HELVETICA" is not right. maybe should set encoding and font, but i don't know how to do .

You should use a font that has the Arabic glyphs. You should use
an Element that supports Arabic (ColumnText and/or PdfPTable).
You should set the run direction correctly. But most of all: you
should Google for the keywords iText and Arabic and then you'll
find some examples.
br,
Bruno

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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/

Reply via email to