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