textDevice.Process FAILS
the object browser and documentation state IO.Steam
but in code it wants string
foreach (Page pdfPage in aPdf.Pages)
{
using (MemoryStream ms = new MemoryStream())
{
//create text device
Aspose.Pdf.Devices.TextDevice textDevice = new Aspose.Pdf.Devices.TextDevice();
//set text extraction options - set text extraction mode (Raw or Pure)
//Aspose.Pdf.Text.TextOptions.TextExtractionOptions textExtOptions = new Aspose.Pdf.Text.TextOptions.TextExtractionOptions(Aspose.Pdf.Text.TextOptions.TextFormattingOptions.t
textDevice.ExtractionOptions = new Aspose.Pdf.Text.TextOptions.TextExtractionOptions(Aspose.Pdf.Text.TextOptions.TextExtractionOptions.TextFormattingMode.Raw);
//convert a particular page and save text to the stream
textDevice.Process(pdfPage, ms);
//close memory stream
ms.Close();
//get text from memory stream
//extractedText = Encoding.Unicode.GetString(textStream.ToArray());
}
}