Unable to save existing Word document as a PDF

When I use Aspose.Words to save the attached document as a PDF, an error occurs during save. The error message and (obfuscated) call stack are:
Message: Value cannot be null.
Stack Trace:
at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at System.Collections.Generic.Dictionary2.ContainsKey(TKey key)
at .[TKey,TValue](IDictionary2 , TKey ) at .(Paragraph , String ) at .(ICollection1 )
at . ()
at ​ . ()
at . ()
at .()
at . ( )
at . ( )
at .( , )
at . ( )
at . ( )
at .( )
at .( , ​ )
at Aspose.Words.Document.(Int32 , )
at .( , )
at . ( )
at . ( )
at Aspose.Words.Document.( , SaveOptions )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)

The save options used are just the defaults - it’s a brand new PdfSaveOptions object with nothing changed on it. The only thing we do is open the document and then immediately save it, and we get the above error.

We’ve attempted to save the document as a docx to see if that helps, but it didn’t. However, we were able to save the document as a PDF using Adobe Acrobat. Is there something we can do to get this file saved as a PDF using Aspose.Words?

Thanks,
Michael Whalen

Sample.zip (38.2 KB)

@mwhalen

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18939. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-18939) have been fixed in this Aspose.Words for .NET 19.9 update and this Aspose.Words for Java 19.9 update.