Thank you, it worked! I have another question, is it possible to have links to menu items? I would like to have a bookmark to the "Find" tool.
Thanks again! Peter >From: "Paulo Soares" <[EMAIL PROTECTED]> >To: "Pierre-Yves Cloutier" ><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> >Subject: Re: [iText-questions] (no subject) >Date: Wed, 7 Aug 2002 23:23:19 +0100 > >You have to create a new PdfDestination for each page. > >Best Regards, >Paulo Soares > >----- Original Message ----- >From: "Pierre-Yves Cloutier" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, August 07, 2002 19:53 >Subject: [iText-questions] (no subject) > > > > I have this piece of code which adds bookmarks on my pdf document, but > > the > > bookmarks all link to the first page only, someone can help me? The > > pages > > are added without problem to the pdf, it's only the bookmarks that are > > problematic. > > > > int m = fpReader.getNumberOfPages(); > > for (int fp = 1; fp <= m; fp++) { > > document.newPage(); > > PdfImportedPage page1 = writer.getImportedPage(fpReader, fp); > > page1.setBoundingBox(psize); > > cb.addTemplate(page1, 1, 0, 0, 1, -psize.left(), -psize.bottom()); > > > > if (fp == 1) { > > cover = new PdfOutline(rootOutline, d1, product); > > cb.addOutline(cover, "cover"); > > } else if (fp == 2){ > > cover = new PdfOutline(rootOutline,d1, > > "How to use this document / Comment utiliser ce > > document"); > > cb.addOutline(cover, "cover"); > > > > cover = new PdfOutline(rootOutline,d1, > > "History of change / Historique des changements"); > > cb.addOutline(cover, "cover"); > > } > > } > > > > Thanks! > > > > Peter > > > > _________________________________________________________________ > > Rejoignez MSN Hotmail, le plus important service de messagerie > > http://www.hotmail.com/fr > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >iText-questions mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions