Hi team,
Facing issue while saving a word document as word2007 and above as I m using the below code and getting the exception.
code :
doc.save(“D://Test//OutputWord-aspose.docx”, SaveFormat.DocX);
Exception :
Exception in thread “main” java.lang.IllegalArgumentException: Invalid save format requested.
at com.aspose.words.SaveOptions.createSaveOptions(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
*
code :
doc.save(“D://Test//OutputWord-aspose.docx”, com.aspose.words.SaveFormat.DOCX);
Exception :
Exception in thread “main” java.lang.IllegalArgumentException: Invalid save format requested.
at com.aspose.words.SaveOptions.createSaveOptions(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
**************************************************************************
Note ::
If I get the docx file using the below code.
doc.save(“D://Test//OutputWord-aspose.docx” );
This word file when converted into pdf using normal java code vanishes all data.Please assist.
Waiting for soon reply.Thanks
Regards
Sonam