Hi,

Unfortunately I'm a bit stuck on what your actual problem is. Is it that no 
TOC entries are being displayed? Or that the Cyrillic characters are not 
being displayed?

If you could clear up my questions, I'll gladly help.

Greetings,
Mark

On Monday 08 January 2007 17:39, Nenko Ivanov wrote:
> I have a task to generate table of contents to IText RTF Document,and
> this toc must be in Cyrillic characters.
> Sounds simple, toc generation is absolutely examples based and nothing
> is fine :(
> So I spent the last 2 days in finding ways to fix this problem.
> By default IText generate this way for storing toc strings
>
>  ret.append("\\\'").append(Long.toHexString((long) ch))
>
> in the generated file and at the beginning of the RTF document I have
> "{\rtf1\ansi\ansicpg1252" opening
> I tried to change it to 1251 which is Cyrillic encoding, and all kind of
> encodings for the Toc Entry text value, but I'm still in dead end street :(
> TOC is generated after "Updating" the RTF document using Microsoft Word
> 2003 I hope that someone can give me advice or solution.
> I'm really stuck in the middle of that problem, with no way out ..
> Thanks in advance.
>
> Nenko Ivanov
-- 
Q:      How many Martians does it take to screw in a light bulb?
A:      One and a half.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgpBTo93lN8Wy.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to