Does anyone know why I get an error when I try to open a .docx file?
The file was created like this
System.IO.File.WriteAllBytes(@"e:\Apps\Schade\RELEASE\Documents_ConvertToPdf\ItextSolution\OutPut\exampleofconvertWordToPdf." + docType, documenInByte);
docType = .docx
byte[] documenInByte = buffer;


Prasad RaveendranRank #320 · 7.8K reputationPosted Apr 27, 2024, 1:55 PM EDT
looks like the file which you try to convert as byte array got corrupted. You take a look at the logic to create documentInBytes.