Can't load document in ColdFusion

hi,

i can’t load doc file by using Aspose classes from ColdFusion. The problem is that it’s not possible to write following construction in CF

Document doc = new Document(@"C:\MyFile.odt");

I can create only object without ‘file’ parameter using such code:

<cfobject type = "Java"
action = "create"
class = "com.aspose.words.Document"
name = "_Document">

and only after i can load file for created object.

Looking through Aspose documentation i found following …
Note: Loading OpenDocument is in Beta at the moment. We hope it will come out of Beta in the next Aspose.Words for .NET release.

Should i wait for next release or this problem can be resolved in other way?

Thanks,
Taras Shengofer

Hi

Thank you for your inquiry. As I can see from your code, you are using Aspose.Words for Java. Currently, Aspose.Words for Java does not support ODT format at all, ODT format is only supported in .NET version of Aspose.Words. You can use .NET assemblies in ColdFusion applications. I created simple example for you, this code converts ODT document to PDF.

Convert Word document to PDF

This example shows how you can convert ODT document to PDF using Aspose.Words

As you can see, you can use constructors in ColdFusion.

Hope this information could be useful for you.

Best regards.

hi Alexey,

thank you … it’s working well.

Taras Shengofer