We have downloaded and checked the solution that you have shared. You are trying to load a Word (.doc) document into Aspose.Pdf.Document object which is why you are facing the exception. Aspose.PDF for .NET does not offer any feature to load .doc files. Please load a valid .pdf Document and in case you face any issue, please feel free to let us know.
' Change the file name to some valid PDF
path = folderpath & "MTD_Coverpage_MM_v2_-_Draft (5).doc"