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.
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