Skip to main content

PdfDocumentProcessor.Text Property

Provides access to the PDF text.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor


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.

Text Normalization in PDF Document API

PdfDocumentProcessor applies FormKC normalization when the bidirectional or RTL text is processed. In other cases, no normalization is applied.


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

View Example

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also