.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfDocumentProcessor.Text Property

Provides access to the PDF text.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v21.1.dll


public string Text { get; }

Property Value

Type Description

A String value that is the target text.


The Text property obtains the document content clipped to the crop box. Use the PdfDocumentProcessor.GetText() method to obtain content without clipping.

The code snippet below uses the PdfDocumentProcessor.Text property to extract the text of a PDF file at runtime.

string ExtractTextFromPDF(string filePath)
    string documentText = "";
    try {
        using (PdfDocumentProcessor documentProcessor = 
        new PdfDocumentProcessor())
            documentText = documentProcessor.Text;
    catch { }
    return documentText;
See Also