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"
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.