Use the following code:
var document = new Document("input.docx");
for (int page = 0; page < document.PageCount; page++)
{
Document extractedPage = document.ExtractPages(page, 1); // startindex and count
string …...startindex and count string text = extractedPage.GetText(); }...as a result incorrect page detection. You can implement IWarningCallback...