ExtractTextFromDocumentAsync(String,Int32,CancellationToken) Method
Extracts text from a specific page of a document image using the
OCROutputType.Text output type. This method must be called on the MCT. Use QueuedTask.Run.
Parameters
- documentFileName
- The document image. See IsValidDocumentForOCR for information about the file extensions supported.
- page
- The page you wish to extract information from. The index is 0-based; meaning that you should pass
0 for the first page; 1 for the second page and so on. Use -1 to extract data from all pages in the document image.
- cancellationToken
- A System.Threading.CancellationToken used to control cancellation behavior for the returned task.
Return Value
A string containing the text extracted. The string can be empty if no data can be extracted.
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.8 or higher.