I resolved this. It was bad code on my end. I was doing an additional UTF8 encoding of the content that corrupted the Docx file prior to sending the Base64 encoded string to the distributed PDF Conversion Service.
BAD:
byte[] bytes = Encoding.UTF8.GetBytes(webClient.DownloadString(blobInfo.BlobUri));
base64 = Convert.ToBase64String(bytes);
FIXED:
byte[] bytes = webClient.DownloadData(blobInfo.BlobUri);
base64 = Convert.ToBase64String(bytes);
public ActionResult ShowFile(int id) { var pictureInDb = _context.FileDetails.FirstOrDefault(c => c.FileDetailId == id); byte[] array; array = pictureInDb.image; var strBase64 = Convert.ToBase64String(array); var viewModel = new FileBinderWithStuff(); if (pictureInDb.Extension == ".jpg") { viewModel = new FileBinderWithStuff { Url = string.Format("data:image/jpg;base64,{0}", strBase64), Extension = pictureInDb.Extension }; } else { viewModel = new FileBinderWithStuff { Url = string.Format("data:Application/pdf;base64,{0}", strBase64), Extension = pictureInDb.Extension }; } return PartialView("_ShowFile", viewModel); }