We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create PDF with Coldfusion (openBD CFML engine) java

Wrestling to create PDF in Coldfusion using the following block with no success:

<cfset FileInputStream = CreateObject(“java”, “java.io.FileInputStream”) >
<cfset File = CreateObject(“java”, “java.io.File”)>

<cfset lic = CreateObject(“java”, “com.aspose.pdf.License”)>
<cfset lic.setLicense(FileInputStream.init(File.init(“E:\Tomcat\webapps\openbd\Aspose.Pdf.lic”)))>


<cfset Document = CreateObject(“java”, “com.aspose.pdf.Document”).init() >


<cfset Section = CreateObject(“java”, “aspose.pdf.Section”).init() >
<cfset Text = CreateObject(“java”, “aspose.pdf.Text”).init() >


<cfset sec1.getParagraphs().add(Text.init(“Τέσσερα”))>
<cfset demo_pdf.save(“E:\Tomcat\webapps\openbd\HelloWorld.pdf”)>

The error produced is: “java.lang.NoSuchFieldException” on line “”.
What am i supposed to do in order to generate PDFs using java aspose PDF lib under openBD CFML engine?

Hi there,


We are sorry for the inconvenience caused. Please try to initialize section object as following and share the results.



Best Regards,