We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect file header

Hi,

We are facing mail merge Incorrect file header problem with one of our clients.

Here is the Reproduction of issue = (https://drive.google.com/file/d/1XRmsCCokObKmDHxcaPO5iCKNrvwraeiE/view?usp=sharing).

Please take a look and get back to us with a resolution.

@kkurra

The archive that you have shared is damaged. Would you please upload it again and share the link with us.damagedarchive.png (2.8 KB)

@asad.ali

Please try with this link of Reproduction issue.

@kkurra

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"