Not able to save .doc as .docm in Java

Hi,
I am trying to save a doc file containing macros as docm but I only see garbage text when I open the docm file.Here is my code

Document doc = new Document("input.doc");
doc.save("output.docm", SaveFormat.DOCM);

Is there anything else I need to do to save the .doc file as .docm?
Thanks,
CrisilUser

Hi

Thanks for your request. Could you please attach your document for testing? I will try to reproduce the problem on my side and provide you more information.
Best regards.

Could this be a license problem? My existing license needs to be renewed and I am not using an evaluation license.
Thanks,
CrisilUser

Hi

Thanks for your inquiry. No, I do not think this is licensing problem. Maybe there is something wrong with your source document. Please attach it here for testing. Only and Aspose staff members can download attached files.
Best regards.