I would like to create one document with a table of contents. 
Therefore I create one content document and for each chapter that I add, I 
save this value in a list. At the end of the content document I close this 
document. Then I create a new document and write the saved chapter list into 
this document. Each entry in this document should refer to a page in the 
content document. After the creation of both documents I copy them together 
into one document. Till the creation of the table of contents document I use 
the setRemoteGoto method to create links. The first parameter in the method is 
the name of the document in that I copy the both documents together and the 
second parameter is a key, that I used in the content document, too. The 
problem is, that after I created the one big document, each link refered to 
the first page in the document and not to the definded chunk that was marked 
as a local destination in the content document.


-------------------------------------------------------------------------
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