PdfDocumentExtractTextFromPages Method (Int32, Int32)

Extracts the written text content from a range of pages within the 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
public string ExtractTextFromPages(
	int startIndex,
	int endIndex


Type: SystemInt32
The start page index. Note: Page 1 has index 0
Type: SystemInt32
The end page index. Note: The last page has index PageCount -1

Return Value

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