On 24/08/2010 9:18, yaf...@harel-ins.co.il wrote:
> Every text in Hebrew not written to the pdf.
>
> How can I create pdf with Hebrew text?

It shows that you didn't read the documentation.
You are facing two problems here:

1. You are using Helvetica, not embedded in the PDF.
    This font doesn't know how to draw Hebrew characters.

Solution: find a font that contains Hebrew characters,
and create an iText font object that embeds the font.

2. Hebrew is written from right to left. If you just
    add paragraphs with Document.add(), the text will
    be written from left to right.

Solution: you need to use PdfPTable or ColumnText and
specify the run direction.

This is all explained in chapter 11 of the 2nd edition
of iText in Action.

There you'll find the code to create a PDF like this:
http://examples.itextpdf.com/results/part3/chapter11/right_to_left.pdf

If you look at the Document Properties, you'll see that
the font ArialMT was embedded using the "encoding" Identity-H.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to