We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TOC point to a paragraph

I've create a pdf with TOC refer to the example

Heading Chapter_Heading = new Heading(pdf, section, 2);
Segment Chapter_Segment = new Segment(Chapter_Heading);
Chapter_Segment.Content = String.Format(sectionName);
Chapter_Heading.IsInList = true;

If my text in the TOC and the text linked are different

Table of Content
Point 1 .........................5
Point 2 .........................8
Point 3 .........................9

When click to the "Point 1"
Go to the page
Category: Point 1
Type: xxx

In the recent coding
The text in the TOC and related paragraph are the same
How can I modify the paragraph only and not affect the TOC?

Hi there,

Thanks for your inquiry. I am afraid I am unable to understand your requirement, I will appreciate it if you please share some more details your input/output document and expected sample document. We will look into it and will guide you accordingly.

However if you want to edit existing TOC entry, then I am afraid it is not supported at the moment.

We are sorry for the inconvenience caused.

Best Regards,

Now, the items in TOC would link to the phase with the same title

If I want to modify of phase part, e.g. put the phase in the table
How can I do this

The item in TOC title "Point 1"
Now it would link to the “Point 1” in paragraph
If I want to modify it, like put this phase in a table
|Section: Point 1 | Category: A |
|Date: xxxx |
how can I do this?

Hi there,

Thanks for the additional information. I am afraid currently TOC entries point to the Pages instead paragraphs. We will appreciate it if you please share a sample expected PDF document here, it will help us to log your enhancement request in our issue tracking system for its implementation.

We are sorry for the inconvenience caused.

Best Regards,