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

Free Support Forum - aspose.com

Unable to cast object of type ' ' to type ' '. InvalidCastException exception when saving docx to pdf

Hi to all


I have come across a docx word document in our records management system that does not want to be saved as a Pdf document.


Here are the lines of code that are relevant:



Aspose.Words.Document docDocx = new Aspose.Words.Document(directoryPath + “RDC-541262.docx”);

docDocx.Save(targetFile, Aspose.Words.SaveFormat.Pdf);

I have attached the document in question.
Any suggestions about what is special would be happily received.

Regards

Ralph Price

Hi Ralph,

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-13335. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Good morning Tahir
thanks for the confirmation that the issue is reproducible.
Looking forward to hearing of progress.
Regards
Ralph Price

The issues you have found earlier (filed as WORDSNET-13335) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.