Aspose::Pdf::Devices::TextDevice class

TextDevice class

Representerar klass för att konvertera pdf-dokumentets sidor till text.

class TextDevice : public Aspose::Pdf::Devices::PageDevice

Metoder

MetodBeskrivning
get_Encoding() constHämtar kodning för extraherad text.
get_ExtractionOptions() constHämtar alternativ för textutvinning.
Process(System::SharedPtr<Page>, System::SharedPtr<System::IO::Stream>) overrideKonvertera 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