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.