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 …...Words Product Family words-net Buffer2018 November...ExtractPages(page, 1); // startindex and count string text = extractedPage...