By Date: <-- -->
By Thread: <-- -->

Problems with Generating Index and Cross References



Hi,

I have been using iText with a combination of Apache FOP for creating
Specification Documents and I would like to thank the developers of iText for
devoting their time in producing such an useful tool.

My tool takes a bunch of individually authored standalone html files + java
sources + package.html's + images and generates JavaDoc and a PDF file.  The
whole process takes about a minute for a 500 page document which is about 30
times faster than some of the industry standard tools....

I have been successfully able to create Page Numbers, Bookmarks, Table Of
Contents, Merge PDF's etc...

The problem I am currently trying to solve is the following

- I need to generate the "INDEX" of all the keywords at the end of the Document.
- I also need to be able to jump from page to page when the user notices a link
to a keyword and clicks on it.

To keeps things simple, for now all my keywords are class, method and constant
names.

The approach I have tried for generating the INDEX is :- 
- For each keyword create a localdestination using
Chunk.setLocalDestination(<keyword>);
- Each individual PDF has quite a few localdestinations.
- I can print the destinations using reader.getNamedDestination().
- The problem I see is that when I merge all the individually generated PDF's,
using PDFCopy, and try to print the destination using
reader.getNamedDestination(), I get nothing....Is there some method I am not
calling, which copies the local destinations to the consolidated PDF?

The second part of the problem is when trying to generate the GOTO's for the
keywords.
- I noticed that I cannot create a Chunk.setLocalGoto("Hello") if there is no
Chunk with localDestination("Hello");
- My origin plan was to do the following, create Chunk.setLocalGoto("Hello") in
one pdf and in another pdf create Chunk.localDestination("Hello"), and when the
two are merged the GOTO's will work fine.
- Is there any iText recommended solution for such problems?

Thank you for the help.

Thanks,
Vijay



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions