I have requirement where I have to convert a doc or docx file into PDF. I have the doc file in byte array format. Need to convert that byte array into PDF without using storage. Is there anyway to do that using only memory. Code I use for conversion using storage is as below.
string outputFileName = destinationFile;
Interopwrd.Application wordApp = new Interopwrd.Application();
Interopwrd.Document wordDoc = null;
wordDoc = wordApp.Documents.Open(sourceFile);
wordDoc.ExportAsFixedFormat(outputFileName, Interopwrd.WdExportFormat.wdExportFormatPDF);
I need to do this without saving in in storage. Is it possible to do that?