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

Free Support Forum - aspose.com

GetStartPageIndex throws System.ArgumentOutOfRangeException using .NET


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



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.