GetStartPageIndex throws System.ArgumentOutOfRangeException using .NET

Hey,

I noticed issue when Page Break is added after if statement.
You can find samples of files in attachment.PageBreakIssue.zip (17.3 KB)

var documentPath = @"D:\MyRepos\PageBreakIssue\files\error.dot";
var document = new Document(documentPath);
var layout = new LayoutCollector(document);

foreach (var node in document.GetChildNodes(NodeType.Paragraph, true))
{
       Console.Write(layout.GetStartPageIndex(node));
}

Thanks,
Mateusz

@acturisaspose

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20045. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.