PDF Wrong object format

Hi,

I’m trying to get the text in different PDFs but I get the following error: “Aspose.Pdf.Engine.IO.Serialization.PdfSerializationException: ‘Wrong object format.’”. When this happens, I check the file and the format is correct, a PDF. What’s is happening? Thanks in advance!

The program stops in this instruction: Aspose.Pdf.Text.TextAbsorber absorber = new Aspose.Pdf.Text.TextAbsorber();

I’m using Windows 10, Visual Studio 2017 and Aspose PDF 11.2.0


This Topic is created by sohail.aspose using the Email to Topic plugin.

@canmenev

Thanks for posting your inquiry.

Please note that it is always recommended to use latest version of the API as it contains more fixes and enhancements. Would you please try your scenario using Aspose.PDF for .NET 18.5 and in case you still face any issue, please share a sample PDF document along with complete code snippet. We will test the scenario in our environment and address it accordingly.