Aspose.Words hangs indefinitely when saving as PDF

Can use the attached document (after unzip) and following code to reproduce. Tested in v24.10.0.

var bytes = File.ReadAllBytes(@"input.doc");
using MemoryStream ms = new MemoryStream();
ms.Write(bytes, 0, bytes.Length);

Aspose.Words.Document document = new Aspose.Words.Document(ms);

using FileStream pdf = new FileStream(@"output.pdf", FileMode.Create);
document.Save(pdf, Aspose.Words.SaveFormat.Pdf);

input.zip (14.0 KB)

@rhrufftx
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27565

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

When will the Document class have a SaveAsync(..., CancellationToken) method like Aspose PDF.NET does? If we have to expect the Document.Save() method to hang indefinitely for some documents (and consume considerable CPU until the thread is killed), we will be forced to run Aspose in a separate process that can be Kill()ed.

@rhrufftx Unfortunately, there is no such method in Aspose.Words.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27567

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.