Hi, I was working with iText in java and tried to make a simple program that
creates a PDF file with Greek text in it.
Here is part of my code:
(...)
*public String url = "C:/Windows/Fonts/arial.ttf";*
public int size = 12;
*public String GREEK_CODEPAGE = "Cp1253";*
(...)
public void createPdf(String filename, String INPUT)throws
DocumentException, IOException {
Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream(filename));
document.open();
*BaseFont fonty = BaseFont.createFont(url , GREEK_CODEPAGE , true);
Font myfonty = new Font(fonty, size, Font.NORMAL);
document.add(new Paragraph(INPUT, myfonty));*
document.close();
}
So, I call this method and it creates my PDF file, but for some reason the
characters
"Δ"(Capital Delta) and "Ω"(Capital Omega) have been replaced everywhere in
my text with
spaces, like this:
http://itext-general.2136553.n4.nabble.com/file/n3703332/pdfresult.bmp
I'm not sure if this is some glitch, or something I did. 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.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/iText-Java-Certain-Greek-characters-don-t-appear-tp3703332p3703332.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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