Error in converting the attached file to pdf. I’m using current version 20.4.0 but its also happening from prior versions.
Code:
var outputFilePath = @“c:\test\output.pdf”;
var document = new Aspose.Words.Document(inputFilePath);
var saveFormat = Aspose.Words.SaveFormat.Pdf;
document.Save(outputFilePath, saveFormat);
Error:
System.ArgumentNullException
HResult=0x80004003
Message=Buffer cannot be null.
Parameter name: buffer
Source=mscorlib
StackTrace:
at System.IO.MemoryStream…ctor(Byte[] buffer, Boolean writable)
at System.IO.MemoryStream…ctor(Byte[] buffer)
at .( , , String , String , String , Byte[] )
at .(String , String , String , Byte[] , )
at .(SignatureLine )
at Aspose.Words.Drawing.SignatureLine.()
at .(Shape )
at .(Shape , , )
at .(Shape , , , )
at .( , , , Boolean )
at .( , , Boolean )
at .( , , Boolean )
at .( , Boolean )
at .( )
at .( )
at .( )
at . ()
at .( , IList1 , IList
1 )
at .( , IList1 , IList
1 )
at .( , IList1 , IList
1 )
at .()
at . ( )
at .( )
at .( , )
at .( , )
at . ( )
at . ( )
at Aspose.Words.Document.( )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at Aspose.Words.Document.Save(String fileName, SaveFormat saveFormat)