Hi Paulo,

You say "Collect name and positions"; is the "position" the parameter ( ..
float paragraphPosition) of the onParagraph method ? 

then at the end of the document I write something like this:
 
PdfDestination destination = new PdfDestination(PdfDestination.FITH,
position(i);
new PdfOutline(cb.getRootOutline(), destination, name(i)); 

Thanks.
Giuseppe.



Paulo Soares-3 wrote:
> 
> You don't have to create the bookmarks as they appear in the page. Collect
> all the text and positions and at the end of the document sort them and
> then create the bookmarks.
> 
> Paulo
> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of beppecosta
>> Sent: Wednesday, September 03, 2008 3:42 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: [iText-questions] Creade a pdf with bookmarks
>>
>>
>> At present I create a pdf from a text file that contains one line with
>> customer code, one line with customer name and a few line of
>> data. A text
>> file has some customers.
>>
>> I've found an example in the tutorial and I create the
>> bookmarks with the
>> "new PdfOutline" in the "onParagraph" when the line contains
>> the customer
>> code; the bookmark section shows the list of codes (unsorted) and the
>> resulting pdf is perfect.
>>
>> Now I've been asked to have more detailed bookmarks that
>> contain both the
>> list of codes and the list of names (each sorted). I've read
>> chapter 13.4
>> but I'm a little confused.
>>
>> Can I have some more help ?
>>
>> Thanks.
> 
> 
> Aviso Legal:
> 
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem. 
> 
> 
> 
> Disclaimer:
> 
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
> 
> 
> 
> 
> -------------------------------------------------------------------------
> 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
> 

-- 
View this message in context: 
http://www.nabble.com/Create-a-pdf-with-bookmarks-tp19290707p19307193.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to