Remove Tab Stops/lines for TOC before page numbers

Hi,


I am using heading and segments to create the TOC. After the TOC is created it displays dots between toc and page number like below.

Title1------------------------------------------------------1
Title2------------------------------------------------------2

I want to remove these dots and page number for certain titles. I looked at the heading.getTextState() but I could not find anything to override.

I am expecting something like this.

Title1------------------------------------------------------1
Title2------------------------------------------------------2
Title3
Title4

In the baove TOC Title 3 and 4 dont have hyperlinks and no destinatin page numbers since it information that needs to be displayed in TOC.

Can you please provide me with a solution.

Regards,
Rajeev

Hi Rajeev,

Thanks for contacting support.

There is not direct method to set formatting for specific TOC items when generating it inside the PDF file. However you may consider using Text search and replace approach to search for particular TOC item and replace some of its contents with blank characters. For more information, please visit