TextDevice.ExtractionOptions property

Gets or sets text extraction options.

public TextExtractionOptions ExtractionOptions { get; set; }


The example demonstrates how to extracted text in raw order.

Document doc = new Document(inFile);
string extractedText;

// create text device
TextDevice device = new TextDevice(new TextExtractionOptions(TextExtractionOptions.TextFormattingMode.Raw));

// convert the page and save text to the stream
device.Process(doc.Pages[1], outFile);

// use the extracted text
extractedText = File.ReadAllText(outFile, Encoding.Unicode); 

See Also