TextDevice
Overview
TextDevice is a class in Aspose.PDF FOSS for .NET.
Extracts text from PDF pages.
This class provides 8 methods for working with TextDevice objects in .NET programs.
Available methods include: Process, TextDevice.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Encoding, ExtractionOptions.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Encoding | Encoding | Read/Write | Gets or sets the text encoding used when writing to a stream. |
ExtractionOptions | TextExtractionOptions | Read/Write | Gets or sets the text extraction options. |
Methods
| Signature | Description |
|---|---|
TextDevice() | Initializes a TextDevice with default settings. |
TextDevice(encoding: Encoding) | Initializes a TextDevice with the specified encoding. |
TextDevice(extractionOptions: TextExtractionOptions) | Initializes a TextDevice with the specified extraction options. |
TextDevice(extractionOptions: TextExtractionOptions, encoding: Encoding) | Initializes a TextDevice with extraction options and encoding. |
Process(page: Page) | Extract text from a single page. |
Process(document: Document) | Extract text from all pages of a document. |
Process(page: Page, output: Stream) | Extract text and write to a stream. |
Process(page: Page, outputFileName: string) | Extract text and write to a file. |