Dear Lokesh,
instead of viewer.Load(DocumentPath, null);
how can we load the PDF which was generated in memory stream directly to the viewer ?
//Converts Word document into PDF document
PdfDocument pdfDocument = render.ConvertToPDF(document);
//Releases all resources used by the Word document and DocIO Renderer objects
render.Dispose();
document.Dispose();
//Saves the PDF file
MemoryStream outputStream = new MemoryStream();
pdfDocument.Save(outputStream);
//Closes the instance of PDF document object
pdfDocument.Close();
outputStream.Position = 0;
return outputStream;