Thank you for your answer. As I create my pdf from an rtf, I hava found a way to convert bkmk into named destinations.
Thanks again for your help NoƩmie. On Sat, May 22, 2010 at 5:32 PM, 1T3XT info [via iText - General] < [email protected]<ml-node%[email protected]> > wrote: > On 05/22/2010 05:05 PM, noemie wrote: > > > Hello, > > > > I'd like to add content to an existing pdf file in order to be able to > open > > it with the 'nameddest' option. > > > > For example, I have a string in my document, let say "Note" and I'd like > to > > add the property which will be understood by nameddest option over this > > String. > > > > Is it possible ? > Yes, but probably not the way you expect it. > > Does somebody knows how to do it ? > > > You have a String somewhere on a page in a PDF file. > This String is part of the page content. > > Now you want to add a named destination. > This is NOT part of the page content. > Named destinations are stored in a different structure and they are not > aware of the content of the page. > > So what you need to do, is to find the position of the String on the page. > This is not impossible, but it can be very difficult. > You need to read AND UNDERSTAND chapter 15 of the second edition of > iText in Action very well. > It's not something that can be explained in a simple mail. > > Once you have the coordinates of the String, it's very easy to add the > named destination. > That's explained in chapter 7. > > ------------------------------------------------------------------------------ > > > _______________________________________________ > iText-questions mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=2227235&i=0> > 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/ > > > ------------------------------ > View message @ > http://itext-general.2136553.n4.nabble.com/iText-nameddest-over-specified-content-tp2227223p2227235.html > To unsubscribe from iText - nameddest over specified content, click > here<http://itext-general.2136553.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bm9lbWllLmJvbG9AZ21haWwuY29tfDIyMjcyMjN8NTAxODY5MDM4>. > > > -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-nameddest-over-specified-content-tp2227223p2231416.html Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________ 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/
