I am attempting to convert a PDF document to a MHTML document using Aspose.Pdf and Aspose.Words. Aspose.Pdf opens the PDF document successfully and saves the PDF to a DOC file successfully but the resulting DOC file fails to load in Aspose.Words.
MemoryStream docStream = new MemoryStream();
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(pdfDocPath);
Aspose.Words.Document wordDoc = new Aspose.Words.Document(docStream);
When docStream is passed into Aspose.Words.Document() is produces a "The document appears to be corrupted and cannot be loaded" error.
I have attached the PDF document I have been working with.
Aspose.Pdf Version: 188.8.131.52
Aspose.Words Version: 10.4.0.0