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)