Hi Using below code to cnvert sharepoit documents to PDF and its not working using latest version of ASPOSE WORDS DLL.
var fileInformation = Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientContext, sourceFileUrl);
// System.IO.Stream stream = fileInformation.Stream;
byte[] sourceFileBytes = MemoryStreamToBytesConversion(fileInformation.Stream);
//var ms = new System.IO.MemoryStream();
// fileInformation.Stream.CopyTo(ms);
var pdfMemoryStream = new System.IO.MemoryStream(sourceFileBytes);
Aspose.Words.Document doc = new Aspose.Words.Document(pdfMemoryStream);
pdfMemoryStream.Close();
System.IO.MemoryStream outputStream = new System.IO.MemoryStream();
doc.Save(outputStream, Aspose.Words.SaveFormat.Pdf);
Microsoft.SharePoint.Client.File.SaveBinaryDirect(clientContext, destinationFileUrl, outputStream, true);