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
I have tested the scenario using Aspose.Pdf for .NET 7.6.0 over Windows 7 X64 where I have used one of my sample PDF file and as per my observations, I am unable to notice any problem. Can you please share the PDF documents which you are using so that we can test the scenario at our end. We are sorry for this inconvenience.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.