java.lang.IllegalStateException: Cannot convert '283'

Hello

in combination with my extended tests of aspose.pdf.kit i am using the java version of aspose.words as well. I will provide a document here which generates an illegal state exception while converted from doc to pdf.

used code is rather simple:

// load license file from disc to enable features
loadLicenseFile();

// convert document to given target
Document doc = new Document(filePath);
doc.save(targetPath);
exception path on the attached document is:
java.lang.IllegalStateException: Cannot convert ‘283’.
at asposewobfuscated.ow.a(EnumUtil.java:58)
at asposewobfuscated.ow.a(EnumUtil.java:67)
at com.aspose.words.cl.aH(LayoutRenderer.java: 464)
at com.aspose.words.cl.a(LayoutRenderer.java: 50)
at com.aspose.words.Document.kv(Document.java: 1736)
at com.aspose.words.Document.a(Document.java: 1724)
at com.aspose.words.Document.a(Document.java: 1445)
at com.aspose.words.Document.save(Document.java: 902)
at com.aspose.words.Document.save(Document.java: 875)

Used Platform is Windows XP on Java 1.6.0_19 JRE with Java 1.5 compatible code.

Thanks in advance
rennicke

Hello

Thanks for your request. 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 fixed. This problem does not occur in .NET version of Aspose.Words. Currently we are working on synchronizing Java and .NET versions of Aspose.Words. Once we finish this work all functionality which is supported in, NET version will be supported in Java version. Also you should note, converting to PDF 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,

Thanks for the information.

Whats the current official ‘non beta’ way to convert a document to a PDF file in java?

Greetings
Rennicke

Hello

Thank you for your interest in Aspose.Words for Java. Converting to PDF feature is available starting from 4.0.0 version. This feature is still in beta, that is why 4.0.2 version has “beta” prefix.
I will notify you as soon as converting to PDF in Aspose.Words for Java is out of beta. It will be somewhere in the end of August.
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.

Best regards,
Aspose.Words team

(139)