Hi,

the document is tagged. But the dodgy thing is to resolve the page 
numbers and formatting the TOC, so that it looks like:
<Title>...dots till end of line...<page number>
And after placing the TOC in the beginning of the document, you have to 
reorder the pages, cause the page numbers aren't correct any more. As is 
said, I find it quite tricky...

Regards,

Abid

Ning Zhao schrieb:
> Hi Abid,
> 
> if your original pdf file is tagged pdf _and_ the contents are well 
> structured, iText has some support for the structured elements. 
> Otherwise you might have to extract the content and organise the content 
> yourself. Have a look at the PRStream class in iText and its 
> documentation, you'll  have an idea how to get the content from a 
> typical pdf.
> 
> Best Regards,
> Ning Zhao
> 
> Abid Hussain schrieb:
>> Hi everybody,
>>
>> as far as I know, there's no specific support for generating a table of 
>> contents in a pdf document in the iText-API...?
>>
>> Cause I find it quite tricky creating a TOC, I wonder if anybody has 
>> written a class (or a collection of classes) which comes up with such a 
>> support and could provide it in some way (e.g. placing it in the web for 
>> download).
>>
>> Thanks for help in advance.
>>
>> Best regards,
>>
>> Abid
>>
>>   
> 
> 

-- 

Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to