That's exactly what I've been looking at since this morning, I begin to understand that PdfOutline stuff, I think it's the solution I need ! :)
Actually I still have a very little problem, I thought your 'TestOutlines' file would give me the answer but it didn't : I'd like to make the PdfDestination point exactly where I want it to, and for the moment, I can't, I make it point to the top of the page (not bad, but not perfect yet ! ). In your example, you use PdfDestination.FIT, but I'd prefer to use PdfDestination.FITH, and precise the exact position of the link, as you do it in the PdfDocument.add() method. To do that, I'd need the 'currentHeight' field, which is unfortunately invisible to me... Is it possible for you, in one way or another, to give us access to this field ? It not the only case when it might be useful, I've already had a few "problems" which would have been so simple to solve with that 'currentHeight' field ! (for instance, when you try to calculate page jumps with very complicated tables...) Thanks a lot ! Isabelle --- Paulo Soares <[EMAIL PROTECTED]> a écrit : > What new methods would you like to have in chapters > and sections? > For more sophisticated bookmarks there's also the > class > PdfOutline and PdfAction. > With them, bookmarks can be freely created in any > order or shape, jumping > not only to some page position but also to a web > link or an external > document. > There are examples in itextpdf.sf.net on how to do > it. > See also the generic tag page event for a way to > know where the Chunk is in > the page. > > Best Regards, > Paulo Soares > > ----- Original Message ----- > From: "Isabelle Guimiot" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, December 01, 2003 9:52 > Subject: [iText-questions] Chapters / Sections > without titles in the > document > > > > Hi ! > > > > I'm new on the list but I've been using I-text for > > quite a long time. I create great documents with > it, > > my client is very happy, but last week he asked me > to > > add bookmarks (documents can have more than 50 > > pages...) and I noticed it was possible with > chapters > > and sections. > > The problem I have is that I DON'T WANT titles > added > > INSIDE the document, I just want to have bookmarks > > with titles, pointing directly to some place in > the > > document (your "PdfDestination" object). I looked > > inside your code, in the PdfDocument.add(Element) > > method : if you find a "title" paragraph in the > > section, you put both a bookmark AND a title in > the > > document. I tried to find out a way to by-pass > that > > code, but I couldn't, because none of the > instances > > dealing with bookmarks in I-Text has a public > > visibility... > > > > For the moment, I modified I-Text code for myself, > but > > it's very dirty and I'd like this solution to be > > temporary ! So, in future versions, could you > please > > add a flag to give us the possibility to add > either > > bookmarks + titles or only bookmarks ? > > > > Thanks a lot ! > > > > Isabelle > > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite > et en français ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback > Program. > > Does SourceForge.net help you be more productive? > Does it > > help you create better code? SHARE THE LOVE, and > help us help > > YOU! Click Here: http://sourceforge.net/donate/ > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions