---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/TextExtractionError
---

# TextExtractionError

## Overview

`TextExtractionError` is a class in Aspose.PDF FOSS for .NET.

Diagnostic produced by TextFragmentAbsorber when a page-level extraction fails or partially succeeds.

This class provides 1 method for working with TextExtractionError objects in .NET programs.
Available methods include: `ToString`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Description`, `ExtractedText`, `FontKey`, `FontName`, `Location`, `Message`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `PageIndex` | `int` | Read | 1-based page number where the error occurred. |
| `Message` | `string` | Read | Human-readable error message. |
| `Description` | `string` | Read | Longer-form description of the error (companion to Message). |
| `ExtractedText` | `string` | Read | Raw text that was extracted before the failure (best-effort). |
| `FontKey` | `string` | Read | Resource-dict font key (e.g. |
| `FontName` | `string` | Read | Human-readable font name reported by the failed font lookup. |
| `Summary` | `string` | Read | One-line summary suitable for logs. |
| `Location` | `TextExtractionErrorLocation` | Read | Where in the content stream the error originated. |

## Methods

| Signature | Description |
|-----------|-------------|
| `ToString()` | Calls ToString on this TextExtractionError instance. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)