On Thursday 05 January 2006 22:15, Divya Nagireddy wrote:
> Any hint on how to implement it?
You need to read the RTF 1.6 specification 
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec.asp)
 
and also look at what Word generates when you have a document with internal 
links. This is a bit of a pain since Word doesn't always fully follow the 
specification.

Then you have to modify the code that writes Anchor objects to also handle 
internal links (com.lowagie.text.rtf.field.RtfAnchor).

Depending on how internal anchors are implemented in RTF (I haven't looked 
into it) you might have to parse the generated RTF document a second time to 
correct the references. But since I haven't looked into this, I can't say 
whether this is really necessary.

I think these three steps should cover most of the process. If you've got 
further questions on the internal workings of the RTF generation, just ask.

Greetings,
Mark
-- 
You have the power to influence all with whom you come in contact.

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

Attachment: pgpzDuL8hiaog.pgp
Description: PGP signature

Reply via email to