Error when converting pdf

Hi,
im trying to convert pdf to docx using aspose.pdf .net but i’m getting the following error:

System.ArgumentOutOfRangeException: ‘A valid UTF32 value is between 0x000000 and 0x10ffff, inclusive, and should not include surrogate codepoint values (0x00d800 ~ 0x00dfff). (Parameter ‘utf32’)’

the code i used:

byte[] bytes = File.ReadAllBytes(@“C:\Users\User\Downloads\compressed.pdf”);
new Aspose.Pdf.License().SetLicense(@“C:\Users\User\Downloads\Aspose.Total.NET.lic”);
MemoryStream streamIn = new MemoryStream(bytes);
MemoryStream streamOut = new MemoryStream();
Document document = new Document(streamIn);
document.Save(streamOut, SaveFormat.DocX);
compressed.pdf (570.2 KB)

@dan243516

While testing with 24.5 version of the API, we were unable to notice this issue. Can you please make sure to use the latest version and let us know if issue still persists.