HI team how can i convert doc/ docx to pdf
my data saving in azure
this is my code( i am converting doc file into pdf and stoe that into a list after this i need to mearge all pdfs into singel and saved to azure )
if (lstDocFileNames.Count > 0)
{
for (int i = 0; i < lstDocFileNames.Count; i++)
{
WordDocument wordDoc = new WordDocument(strLocalUploadedDocumentsFolderPath + "\\" + lstDocFileNames[i]);
DocToPDFConverter converter = new DocToPDFConverter();
// Convert word document into PDF document
PdfDocument pdfDoc = converter.ConvertToPDF(wordDoc);
// Save the pdf file to Local folder
pdfDoc.Save(strLocalUploadedDocumentsFolderPath + "\\" + lstDocFileNames[i].Split('.').First() + ".pdf");
if (LocalFiles.Count() > 0)
{
for (int j = 0; j < LocalFiles.Count(); j++)
{
if (LocalFiles[j] == null || LocalFiles[j] == string.Empty)
{
LocalFiles[j] = strLocalUploadedDocumentsFolderPath + "\\" + lstDocFileNames[i].Split('.').First() + ".pdf";//Keep the file, in which order they have sent to merge
break;
}
}
}
}
}