Hi.

I dont know whether my previous mail got through, so heres it again:

How do i make Umlaute and other special Character show up in a PDF Document?

Here is my Code:

BaseFont bf = BaseFont.createFont(FontFactory.TIMES_ROMAN, BaseFont.CP1250, BaseFont.NOT_EMBEDDED);
PdfContenByte cb = docWriter.getDirectContent();
cb.beginText();
cb.setFontAndSize(bf, 12);
cb.showText("- ���� +");
cb.endText("");


Unfortunately everything between "-" and "-":
1) does not show up at all, or
2) shows up as question marks ("?")
depending on the encoding BaseFont.CP1252 or BaseFont.CP1250

which is rather frustrating.

what am i doing wrong?

regards, ulf






------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg297 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to