See the example simple_toc.java at itextpdf.sf.net. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Kalluru Uma. Maheswar
> Sent: Tuesday, February 01, 2005 4:29 AM
> To: [email protected]
> Subject: [iText-questions] Creating "Table of contents" page
> 
> Hi,
> 
>  
> 
> I have a dynamic PDF file generated. It gets the data from 
> the database and creates the PDF 
> 
> file. Now I wanted to create a "Table of contents" page in 
> the beginning with hyperlinks to 
> 
> respectable headers. My programme knows the title names. My 
> code looks something like this 
> 
>  
> 
> for(int i=0; i < rec.size(); i++)
> 
> {
> 
>             if(title....... )
> 
>             {
> 
>                         document.add(new Paragraph("add my header"));
> 
>                         .....
> 
>             }
> 
>             else
> 
>             {
> 
>                         document.add(new Paragraph("print my 
> content")); 
> 
>                         .....
> 
>             }
> 
> }
> 
>  
> 
> Now how to I generate the "Table of contents page". Any 
> sample code would be helpful.
> 
>  
> 
> Thanks
> 
>  
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to