- Aspose.Pdf 22.214.171.124
- Aspose.Words 126.96.36.199
- Result: Produces corrupted pdfs…
- Error Message: There is a problem reading this document (14).
- Meaning: Pdf is corrupted…
I would be glad too. It certainly is a weird error. I am sharing the output file, and the project file.
I did some more testing, and I can confirm that it has something to do with the Word to Pdf conversion. I ran the solution without trying to convert and merge the word document, and the merge was successful.
using (MemoryStream ms = new MemoryStream())<o:p></o:p>
MemoryStream ms = new MemoryStream();
pdf = new Aspose.Pdf.Document(ms);
//ms.Position = 0;
You are a genius, it worked. Thank you very much.