Hi, I've purchased the book this morning in MEAP version.
What sample of the book solve my problem? I have tested "ConcatenateBookmarks" and "ConcatenateNamedDest" samples and don't work In first sample in the call tmp = SimpleBookmark.getBookmark(reader); tmp is always "null" I suppose document hasn't bookmarks so it has internal links. In the second sample the call SimpleNamedDestination.getNamedDestination(readers[1], false) Returns an empty hashmap The source documents are created in MS Word 2007 and saved as PDF. The links are created in word as an hiperlynk to a "marcador" (bookmark, I suppose, in English version). I could attach the files if you want but I don't know if attachments are welcome in the maillist) Regards, Miguel A. Maicas -----Mensaje original----- De: [email protected] [mailto:[email protected]] Enviado el: lunes, 10 de mayo de 2010 23:03 Para: [email protected] Asunto: iText-questions Digest, Vol 48, Issue 24 Send iText-questions mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/itext-questions or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of iText-questions digest..." ---------------------------------------------------------------------- Message: 1 Date: Mon, 10 May 2010 19:12:58 +0200 From: 1T3XT info <[email protected]> Subject: Re: [iText-questions] Updating internal links in a contatenated pdf To: Post all your questions about iText here <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Maicas Juanes, Miguel ?ngel wrote: > Hi, > > I have 2 pdf documents (doc1.pdf ; doc2.pdf) that I must concatenate in > another pdf (result.pdf) OK > doc1.pdf and doc2.pdf have internal links OK > I'm using a variant of the code of ConcatenateStamp sample: > http://itextpdf.com/examples/index.php?page=example&id=128 That's an example from the second edition of the book "iText in Action". It is assumed that you have purchased the book if you use this example. > The result document (result.pdf) is created but internal links of the > second document (doc2.pdf) have the original page destination (if the > first link in doc2.pdf point to the 3th page of doc2.pdf the same link > in result.pdf point to the 3th page of result.pdf). The answer can be found in part 2 of the book, please read on, and you'll find it. > I've tried to change the destination using this code: The answer to your question is mentioned literally in the book. The chapter you need is already available: http://itextpdf.com/book/ (Note that you shouldn't buy the book through Amazon if you need an immediate answer.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
