chriskaza81 wrote:
> if it is just possible to provide a sample code  because i don't understand
> what could be my fault although i sertenly know that is my fault.

The problem is generally caused by not understanding how fonts work.
There's an interesting chapter about fonts in this book (chapter 11):
http://itextpdf.com/book/
See also http://itextpdf.com/examples/index.php?page=toc&id=11
There are examples with Greek text here:
http://itextpdf.com/examples/index.php?page=example&id=198
http://examples.itextpdf.com/results/part3/chapter11/encoding_example.pdf
and here:
http://itextpdf.com/examples/index.php?page=example&id=215
http://examples.itextpdf.com/results/part3/chapter11/peace.pdf

You can find more examples here:
http://1t3xt.info/tutorials/keywords/index.php?page=keyword&id=324

I know that these examples are written in Java, not in C#,
but the principle and the functionality is the same.

Greek glyphs DON'T work with the unembedded type 1 font Helvetica.
You need a font such as arial.ttf, you need to embed the font,
you need to use the correct encoding, and also: you need to make
sure that the String object is correctly encoded. For instance:
make sure there isn't a mismatch between the encoding of the
database and of the default encoding of the application receiving
the data. This is explained in chapter 2 of the book.

In other words: even if we give you a working example, there's no
guarantee that it will work for you if you copy it without understanding
what it's about. For instance: did you check if the font 
"c:/windows/arialuni.ttf" is even present on your system?

Also: using '/' is OK in Java, but does it work in C#?
Maybe you should change the '/' into '\'.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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