Can't save as PDF or DOCX

I just downloaded the latest for evaluation. If I try to save a document
as PDF (using a .pdf extension) I get a resulting file that is corrupt. If
I try to save using a .docx extension, I get the following exception thrown:

java.lang.NoClassDefFoundError: kom/aspose/words/SaveOptions

If I try to save using a .xml extension, I get the following thrown:

java.lang.UnsupportedOperationException: Unsupported SaveFormat: .wml

Any idea what I might be doing wrong? Here’s the simple code I’m using:

try
{
    Document doc = new Document();
    DocumentBuilder builder = new DocumentBuilder(doc);
    builder.writeln("sample text");

    doc.save("c:\test\sample.xml");
    int x = 1;
}
catch (Exception e)
{
    int x = 1;
}

This is on Windows XP using Java 6.

Thanks for any help.

I’ve attached the corrupt PDF that was generated.

Hi
Thanks for your request. As I can see, you are using Aspose.Words for java.
Aspose.Words for Java does not support WordML and PDF format. Please see the following link to learn what formats are supported by Aspose.Words:
https://docs.aspose.com/words/net/supported-document-formats/
However, note that Java version does not support some formats yet.
Regarding DOCX, it is a known issue #7524 in our defect database. I will notify you as soon as it is fixed.
As a workaround, if you need to save your document in DOCX format, you can try using previous version (2.6.0).
Best regards.

Hi mindstream,
Thanks for the point. You can download the fixed jar from https://releases.aspose.com/words/net
But be careful, today is Friday, 13.
Regards,