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

Free Support Forum - aspose.com

Heading in FloatingBox missing from table of contents

When creating a heading inside a floating box, it does not show in the table of contents.

var pdf = new Pdf();
var toc = new ListSection(pdf)
Title = new Text(“toc”),
toc.ListType = ListType.TableOfContents;
var section = pdf.Sections.Add();
var heading1 = new Heading(pdf, section, 1)
IsInList = true,
heading1.Segments.Add(“heading 1”);
var heading2 = new Heading(pdf, section, 1)
IsInList = true,
heading2.Segments.Add(“heading 2”);
var floatingBox = new FloatingBox()
Top = 30,

“heading 2” is missing from the table of contents

Aspose.Pdf version

Hi Patrick,

for using our API’s.

have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-37960 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

The issues you have found earlier (filed as PDFNET-37960) have been fixed in Aspose.Pdf for .NET 17.5.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.