Aspose.Pdf bug in .Net C#. Table of Contents Title issue with Document.ProcessParagraphs()

69 Views Asked by At

When creating a document with a Table of contents and a Title everything works great as below.

public void CreateTableOfContentsPage(TextFragment title)
{
    TOCPage = AddPage(this);
    TOCPage.TOCInfo = new TocInfo
    {
        Title = title,
        FormatArray = Array.Empty<LevelFormat>()
    };
}

When I add pageNumbering and add the Document.ProcessParagraphs(); The Table of Contents page title is duplicated below the table of contents as below.

PDF Table of Contents

This is corrected by removing the Document.ProcessParagraphs(), but then the Page numbers are screwed up. This is a major issue, either you have a Table of contents or page numbers, but not both.

Aspose.Pdf for .Net is version 23.10.

I was expecting. Correct Table of Contents

0

There are 0 best solutions below