Document doc = new Document(MyDir + "TestFooterDocument.docx");
string txt = "";
int pagecount = doc.PageCount;
for (int i = 0; i < pagecount; i++)
{
    Document newdoc = doc.ExtractPages(i, 1);
    txt += newdoc.ToString(SaveFormat.Text);
}