That's super easy to do in java and iText. Your problem is that the built in font
Helvetica doesn't have all the characters you want. You must use an external font,
embedded, to do it. Soemthing like this:
BaseFont arial = BaseFont.createFont("c:\\windows\\fonts\\arial.ttf", BaseFont.CP1250,
BaseFont.EMBEDDED);
Font font = new Font(arial, 12, Font.NORMAL);
document.add(new Paragraph("Nazdar Zdeňko. ěščřžýáíé E\u011bE", font));
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Leos Literak
> Sent: Sunday, May 23, 2004 8:43 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] latin2 characters in PDF
>
> Hi,
>
> I'd like to use itext for producing PDF with
> text written in Czech language. The standard
> encoding is ISO-859-2 for this language, but
> Microsoft prefers its Windows-1250 variant,
> which seems to be supported by itext.
>
> I know from people using TeX, that it is not
> easy to set this tool to produce PDF with text
> correctly displayed for our language. I worry,
> that java way might be even worse. Though its
> unicode support.
>
> So let me introduce my problem. I want to
> write to PDF full list of czech characters.
> But some of them are not displayed. If I dont
> set encoding to 1250, they are skipped altogether.
> If I set the encoding, they are displayed as space.
>
> BaseFont helvetica = BaseFont.createFont("Helvetica", BaseFont.CP1250,
> BaseFont.NOT_EMBEDDED);
> Font font = new Font(helvetica, 12, Font.NORMAL);
> document.add(new Paragraph("Nazdar Zdeňko. ěščřžýáíé
> E\u011bE", font));
>
> Any idea, how to use central european characters
> with iText and PDF and acrobat reader?
>
> Thanks in advance!
>
> Have a nice day
>
> Leos
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market...
> Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id149&alloc_id?66&op=ick
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions