I had the same problem few years ago. I am using the following code snippet
for Greek letters.

BaseFont bf = BaseFont.createFont("c:/windows/fonts/arial.ttf",
BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
bf.setSubset(true);

This will fix the problem with "Δ" and "Ω" and generally Greek letters. I
also embed only the subset of the font.

2011/7/29 1T3XT BVBA <[email protected]>

> On 29/07/2011 10:03, Kostas wrote:
> > I tried using other
> > codepages and fonts that support Greek characters, but those 2 characters
> > were still missing. Can you help me? Thanks in advance.
> You're using Code page 1253. This means you're using the font as a
> "simple font" (section 11.2.1 in "iText in Action - Second Edition").
> When you use the font as a "simple font", you can use at most 256
> characters.
>
> If you need more characters in one font (for instance: if you switch
> between languages regularly), you should use the font as a "composite
> font" (section 11.2.2 in "iText in Action - Second Edition").
>
> In practice: replace GREEK_CODEPAGE with BaseFont.IDENTITY_H and use
> UNICODE for your characters.
>
>
> ------------------------------------------------------------------------------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to