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 RaveendranPosted Apr 27, 2024, 5:55 PM
looks like the file which you try to convert as byte array got corrupted. You take a look at the logic to create documentInBytes.