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.Dictionary
2.ContainsKey(TKey key)
at .[TKey,TValue](IDictionary2 , TKey ) at .(Paragraph , String ) at .(ICollection
1 )
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)