PdfDocumentExtractTextFromPages Method (IEnumerableInt32)

Extracts the written text content from specified pages in the PDF PDF and returns it as a string. Pages will be separated by 4 consecutive Environment.NewLines

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
Syntax
public string ExtractTextFromPages(
	IEnumerable<int> pageIndexes
)

Parameters

pageIndexes
Type: System.Collections.GenericIEnumerableInt32
An IEnumerable list of page indexes.

Return Value

Type: String
The text extracted from the PDF pages as a string.
See Also
Download DLL or Install with Nuget