Aspose::Pdf::Devices::TextDevice class
Innehåll
[
Dölj
]TextDevice class
Representerar klass för att konvertera pdf-dokumentets sidor till text.
class TextDevice : public Aspose::Pdf::Devices::PageDevice
Metoder
| Metod | Beskrivning |
|---|---|
| get_Encoding() const | Hämtar kodning för extraherad text. |
| get_ExtractionOptions() const | Hämtar alternativ för textutvinning. |
| Process(System::SharedPtr<Page>, System::SharedPtr<System::IO::Stream>) override | Konvertera sidan och spara den som textström. |
| set_Encoding(const System::SharedPtr<System::Text::Encoding>&) | Ställer in kodning för extraherad text. |
| set_ExtractionOptions(const System::SharedPtr<Text::TextExtractionOptions>&) | Ställer in alternativ för textutvinning. |
| TextDevice(const System::SharedPtr<Text::TextExtractionOptions>&) | Initierar en ny instans av TextDevice med alternativ för textutdrag. |
| TextDevice() | Initierar en ny instans av TextDevice med rå textformateringsläge och Unicode-textkodning. |
| TextDevice(const System::SharedPtr<System::Text::Encoding>&) | Initierar en ny instans av TextDevice för den angivna kodningen. |
| TextDevice(const System::SharedPtr<Text::TextExtractionOptions>&, const System::SharedPtr<System::Text::Encoding>&) | Initierar en ny instans av TextDevice för den angivna kodningen med alternativ för textutdrag. |
Anmärkningar
Objektet TextDevice används i huvudsak för att extrahera text från en pdf-sida.
Se även
- Class PageDevice
- Namespace Aspose::Pdf::Devices
- Library Aspose.PDF for C++