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. (PDF OCR). Pages will be separated by 4 consecutive newline characters ("\n\n\n\n")

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: (
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

[Missing <returns> documentation for "M:IronPdf.PdfDocument.ExtractTextFromPages(System.Int32,System.Int32)"]

See Also