Hi,
I have been trying to convert a Word Document to a .PDF using the Aspose Words for Java library and a free temporary license without success. If I don’t apply the license the .PDF gets created but has the ‘Evaluation copy…’ message in Red. After setting the license as recommended, the .PDF gets created but when I try to open it Adobe says “the file is damaged and cannot be repaired” and nothing shows. Please advise.
com.aspose.words.License license = new com.aspose.words.License();
try
{
license.setLicense("Aspose.Words.lic");
Document doc = new Document("C:/Documents and Settings/sandeep/Desktop/Design_eGov Application Questions.doc");
doc.save("C:/Documents and Settings/sandeep/Desktop/AMMC-bin/Design_eGov Application Questions.pdf");
}
catch (Exception ex)
{
ex.printStackTrace();
}
Thanks for your request. Could you please attach the document you are getting problem with? I will investigate the problem on my side and provide you more information. Also you should note, converting to PDF in Aspose.Words for Java is in beta at the moment. I will notify you as soon as converting to PDF in Aspose.Words for Java is out of beta.
Best regards,
Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,
Hi,
Do you have any information if the problem I had mentioned (converting .docx/.doc to PDF using aspose words for Java) has been resolved?
Thanks,
Sundeep
Hi
Thanks for your request. The issue will be resolved once we finish our work on synchronizing .NET and Java versions of Aspose.Words. We already mostly complete this work. You can check the status of this process in our blog: https://blog.aspose.com/2010/12/24/autoporting-aspose-words-for-java-progress-24th-dec-2010
We will let you know once the next version of Aspose.Words for Java is available.
Best regards,
Thanks for your request. Unfortunately, I cannot provide you any reliable estimate regarding this at the moment. Please expect a reply within 3-4 weeks.
Best regards,
We are happy to inform you that the first auto-ported version of Aspose.Words for Java is ready. This version supports converting documents to PDF. You can get it from here.