Aspose::Pdf::Devices::TextDevice class
Contents
[
Hide
]TextDevice class
Represents class for converting pdf document pages into text.
class TextDevice : public Aspose::Pdf::Devices::PageDevice
Methods
Method | Description |
---|---|
get_Encoding() const | Gets encoding of extracted text. |
get_ExtractionOptions() const | Gets text extraction options. |
Process(System::SharedPtr<Page>, System::SharedPtr<System::IO::Stream>) override | Convert page and save it as text stream. |
Process(System::SharedPtr<Page>, System::String) | Perfoms some operation on the given page and saves results into the file. |
set_Encoding(System::SharedPtr<System::Text::Encoding>) | Sets encoding of extracted text. |
set_ExtractionOptions(System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>) | Sets text extraction options. |
TextDevice(System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>) | Initializes a new instance of the TextDevice with text extraction options. |
TextDevice() | Initializes a new instance of the TextDevice with the Raw text formatting mode and Unicode text encoding. |
TextDevice(System::SharedPtr<System::Text::Encoding>) | Initializes a new instance of the TextDevice for the specified encoding. |
TextDevice(System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>, System::SharedPtr<System::Text::Encoding>) | Initializes a new instance of the TextDevice for the specified encoding with text extraction options. |
Remarks
The TextDevice object is basically used to extract text from pdf page.
See Also
- Class PageDevice
- Namespace Aspose::Pdf::Devices
- Library Aspose.PDF for C++