Yes, I was talking about bookmarks.
Thanks for your answer, now I've done it and it works very well.
Best regards...
----- Original Message -----
From: "Mark Storer" <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Sent: Friday, August 01, 2008 7:08 PM
Subject: Re: [iText-questions] Outlines
> Antonio Q <aq71bo <at> vodafone.it> writes:
>
>>
>>
>> Hi.
>> I can't find the way to add one or more outlines to
>> an existing pdf document, can somebody help me?
>> Thanks for your interest
>>
>
> If you mean "bookmarks", then yes, it's possible with out-of-the-box iText,
> though there's no example.
>
> Do these PDFs already have bookmarks? That'll change things significantly.
>
> If not, it's fairly easy:
>
> Create a reader/stamper
> Build your outline List with the com.lowagie.text.pdf.SimpleBookmark class.
> myPdfStamper.setOutlines( myListOfBookmarks );
>
>
> Alternatively you could directly manipulate the PdfOutline objects rather than
> using SimpleBookmark and setOutlines().
>
> If those PDFs already have bookmarks, then things get more complex. Do you
> want
> to append new bookmarks to the existing list, or mix them in?
>
> You can get a List of SimpleBookmark easily enough:
> List mylist = SimpleBookmark.getBookmarks( myReader );
>
> You'd then do whatever you're going to do to that list and set it back into
> the
> document with PdfStamper again.
>
> PS: If you don't want bookmarks, you're going to have to be more specific
> about
> what you /do/ want.
>
> --Mark Storer
> Senior Software Engineer
> Cardiff.com
>
> #include <disclaimer>
> typedef std::disclaimer<Cardiff> Discard;
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php