Is there any best practice on how to produce a Table of Contents dynamically?
I am thinking of the style that goes something like:
chapter 1 ..................................... 3
chapter 2 ..................................... 7
chapter 3 ..................................... 14
I've got something in place now, using a single column table2, but it doesn't quite work right... Originally I just had a label that was set to Align=FullJustify - but once my chapters had spaces in them, the spaces started getting expanded, and it didn't look right.
Has anyone else done this and have a suggested approach? I'm open to changing formats...
Thanks,
Matt
Appropriate way to generate a TOC?
Re: Appropriate way to generate a TOC?
Support · Apr 9, 2013Hello,
You can achieve your requirement without any problem using our DynamicPDF Generator for .NET product API. You can have two columns one for adding links and dotted line and other for adding the page numbers. You can add multiple page elements and position them by dynamically calculating the X and Y positions within the cell. Please refer documentation on adding page elements to the cell of the Table2 page element here
.
You can also contact our [^a|mailto:support@cete.com|opennewwindow|support ^] team asking for the sample code to add the TOC page to the PDF document. Please add the link of this forum in your email to support.
Thanks,
ceTe Software support Team.