One of our clients complained about our software “hanging”. I have since been able to avoid the issue by wrapping the code in a Task so I can abort it if it takes more than 10 seconds, but of course the main issue is that the .SAVE method fails to complete.
The code is (with all error handling and niceties like that stripped out, VB.NET code. sFile is the original file path, sToFileName = the target file path somepath\somefile.pdf for example)
Dim oDoc As Aspose.Words.Document = Nothing oDoc = New Aspose.Words.Document(sFile) With oDoc.LayoutOptions.RevisionOptions .ShowRevisionBars = False .ShowRevisionMarks = False End With oDoc.Save(fileName:=sToFileName, saveFormat:=Aspose.Words.SaveFormat.Pdf)
The attached file has this problem. We’re using Aspose.Words for .NET version 22.2.0, our project is a VB.NET project targeting .NET Framework 4.8
test.docx (55.7 KB)