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

Free Support Forum - aspose.com

Convert a word file to pdf file caused the file corruption

We would like to convert myTest.docx to pdf format, so we used the following code:

Aspose.Words.Document document = new Aspose.Words.Document(“myTest.docx”);
document.Save(“ConvertedOutput.pdf”, Aspose.Words.SaveFormat.Pdf);

The converted file is corrupted as it is different from the original file (The document is in Khmer and uses a Khmer font).

I have attached the original file and converted file.

I also tried open the original file with Microsoft Office and save it as pdf format, the saved pdf file looks fine.

Thanks for your help.
Hi Caifang,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14272. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-14272) have been fixed in this Aspose.Words for .NET 20.1 update and this Aspose.Words for Java 20.1 update.