Click or drag to resize

PdfDocumentExtractAllText Method

Extracts the written text content from 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: 4.4.2.27556 (4.4.4.0)
Syntax
public string ExtractAllText()

Return Value

Type: String
All text in the PDF as a string.
See Also