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

# PdfToTextConverter

## Overview

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

Converts PDF pages to plain text.

This class provides 4 methods for working with PdfToTextConverter objects in .NET programs.
Available methods include: `SaveAllPagesAsText`, `SaveAsText`, `SavePageAsText`, `SavePageRangeAsText`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `SavePageAsText(doc: Document, pageNumber: int)` | Extract text from a single page. |
| `SaveAllPagesAsText(doc: Document)` | Extract text from each page separately. |
| `SavePageRangeAsText(doc: Document, fromPage: int, toPage: int)` | Extract text from a page range (1-based, inclusive). |
| `SaveAsText(doc: Document)` | Extract text from the entire document. |

## See Also

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