We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception when saving word document as PDF

I’m seeing an exception when trying to save a word document as a PDF after performing operations on the word document. The following 3 lines of code and this specific document seem to result in exceptions being thrown from with Aspose code. Attached zip file contains code sample and the specific document.

DocumentTest.zip (109.9 KB)

document.AcceptAllRevisions();
Aspose.Words.NodeCollection comments = document.GetChildNodes(Aspose.Words.NodeType.Comment, true);
comments.Clear();

Thanks!

@jcapell,

After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 19.3, we were unable to reproduce this issue on our end (please see 19.3.pdf (109.1 KB)). We would suggest you please upgrade to the latest version of Aspose.Words for .NET. Hope, this helps.