I am reading file docx from azure blob and then with below code converting it to pdf:, pdf is created but not opening.
error while opening pdf file:
We can’t open this file
Something went wrong.
var convertRequest = new ConvertDocumentRequest(_documentOperationService.GetFileByUrl(outputfilepath), “pdf”);
var pdffile= wordsApi.ConvertDocument(convertRequest).Result;
IFormFile pdfile = new FormFile(pdffile, 0, a.Document.First().Value.Length, “name”, newFileName.Replace(“docx”,“pdf”));
_documentOperationService.Upload(libraryName, pdfile);