The maximum attachment of the website is 50000kb (about 48mb). My application package is only 20mb, but the website does not allow me to upload, so I can only copy the code to you.
Nuget package: Aspose. Words 19.8.0
.Net core 3.1
using System;
using Aspose.Words;
using Aspose.Words.Layout;
using Aspose.Words.Tables;
namespace StartPageIndexTestDemo
{
class Program
{
static void Main(string[] args)
{
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(“Aspose.Total.lic”);
var fileSrc = AppDomain.CurrentDomain.BaseDirectory + "/Printout sample_ modified(1).docx";
var document = new Document(fileSrc);
document.CompatibilityOptions.OptimizeFor(Aspose.Words.Settings.MsWordVersion.Word2010);
LayoutCollector layoutCollector = new LayoutCollector(document);
var tables = document.GetChildNodes(NodeType.Table,true);
foreach(Table table in tables)
{
var tableIndex = tables.IndexOf(table);
var startPageIndex = layoutCollector.GetStartPageIndex(table);
var endPageIndex = layoutCollector.GetEndPageIndex(table);
if (tableIndex == 21)//The table 21 is which has error start Page Index.
{
Console.WriteLine($"Error across page index of table[{tableIndex}]:{startPageIndex}~{endPageIndex}");
}
else
{
Console.WriteLine($"Across page index of table[{tableIndex}]:{startPageIndex}~{endPageIndex}");
}
}
Console.ReadLine();
}
}
}