Use page promise for text extraction.
Merge pull request #3920 from brendandahl/text-promise

Use page promise for text extraction.