PdfDocumentExtractAllText Method

Extracts the written text content from 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 ExtractAllText()

Return Value

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