
## TextDevice class

Represents class for converting pdf document pages into text.

The TextDevice type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|TextDevice(extraction_options)|Initializes a new instance of the TextDevice class|
|TextDevice()|Initializes a new instance of the [TextDevice](/pdf/python-net/aspose.pdf.devices/textdevice/) with the Raw text formatting mode and Unicode text encoding.|
|TextDevice(encoding)|Initializes a new instance of the TextDevice class|
|TextDevice(extraction_options, encoding)|Initializes a new instance of the TextDevice class|
## Properties
| Name | Description |
| :- | :- |
|extraction_options|Gets or sets text extraction options.|
|encoding|Gets or sets encoding of extracted text.|
## Methods
| Name | Description |
| :- | :- |
|process(page, output)|Convert page and save it as text stream.|
|process(page, output_file_name)|Convert page and save it as text stream.|

### See Also

* namespace [aspose.pdf.devices](/pdf/python-net/aspose.pdf.devices/)
* assembly [Aspose.PDF](/pdf/python-net/)

