ASPOSE PDF COnversion in SharePoimt

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);

Hi Vishnu,

Thanks for your inquiry. Could you please share some detail about your query? Are you getting any exception while document conversion or output is incorrect? Please share your input Word document here for testing. We will investigate the issue on our side and provide you more information.