Click or drag to resize

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 newline characters ("\n\n\n\n")

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.3.2.0 (2020.3.2.0)
Syntax
public string ExtractTextFromPages(
	int StartIndex,
	int EndIndex
)

Parameters

StartIndex
Type: SystemInt32
The start page index. Note: Page 1 has index 0
EndIndex
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