Hello,
I get a ‘Premature End of File’ error when trying to set my Aspose words license in ColdFusion. Here is the code I’m using to set it (I followed the same method that works for Aspose Cells):
<cfset LicfileI = LicFile.init(JavaCast("string","D:\Inetpub\wwwroot\Intranet\Aspose.Words.lic"))>
<cfset license.setLicense(LicfileI)>
<cfset doc=CreateObject("java", "com.aspose.words.Document").init()>
<cfset builder=CreateObject("java", "com.aspose.words.DocumentBuilder").init(doc)>
<cfset builder.write("Hello World!!!")>
<cfset doc.save("D:\InetPub\wwwroot\Intranet\twg\marketing\temp\out.doc")>
Thanks