Hi Bruno,

sorry for not beeing precise.

I do use the outlines and they do work fine. I'm also very happy with them, 
no question here. I did create them based on an example from your webpage. 
Super! So here I do not have a question.

In addition to the outlines I would like to create a table of content, like 
this.

Chapter 1                      Page 4
Subchapter 2                 Page 7

on a separate page. I believe if I would see an example it would be very 
easy to adopt this to my program. So my question was: Does someone can point 
me to an example code on how to create a table of content?

Best regards, Lars

"Bruno Lowagie" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Lars Vogel wrote:
>> I believe my  question was lost due to mailing list troubles...
>
> Paulo answered your question:
> "There's a couple of examples in the book but you must realize that
>  there  isn't any automatic way to create TOCs in PDFs. The best way
>  is to do two passes, collecting the page positions in the first pass
>  and generating the TOC and the content in the second pass."
>
> I saw your question too (with some delay), but I didn't really
> understand what you were asking.
>
> "how to create a table of content referrening to the correct
> page number of the sections?" can be interpreted in different ways.
>
> Are you saying you are using Chapter/Section and the outlines
> don't point to the correct page? Do you want to page number to
> appear in the outlines? Are you even talking about the outlines
> in the Bookmarks panel, or are you talking about a TOC on a page
> in the PDF? You should specify.
>
> br,
> Bruno
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to