Hello,
I'm using IntelliJ IDEA and iText library and I'm having problems
with cyrillic characters.
What I'm trying to do, is to put some cyrillic text with an absolute
position on the pdf.
My source:
...
BaseFont bf = BaseFont.createFont("c:/winnt/fonts/times.ttf",
BaseFont.IDENTITY_H, true);
PdfContentByte cb = writer.getDirectContent();
cb.beginText();
cb.setFontAndSize(bf, 10);
cb.setTextMatrix(60, 650);
cb.showText("text in cyrillic");
cb.endText();
...
IDEA runs my program with -Dfile.encoding=UTF-8 and cyrillic
characters are showing in IDEA correctly, but not on the pdf form.
Does anyone use IntelliJ IDEA with cyrillic characters?
Or maybe to put cyrillic characters on the pdf I should write text
in "\u0418\u044f" format? In such format cyrrilic characters are
showing correctly on the pdf.. but it isn't so comfort.
--
Best regards,
Algirdas
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions