Use DocumentInfo.raw_page_count property instead of DocumentInfo.page_count property for raw text extraction.
Some documents have different page numbers in accurate and raw text extraction modes.
DocumentInfo.page_count property may perform extra calculations which impacts on text extraction speed in raw mode.