I have integrated the JARS into Lucee (Open source Adobe ColdFusion) and managed to create a basic Word docx, but I have a problem.
This is on 11.5.3, I downloaded the bundle zip.
I am trying to control the width of the top,bottom,left and right margins, the code throws an error:
Error loading PgMar class: cannot load class through its string name, because no definition for the class with the specified name [org.docx4j.wml.PgMar] could be found caused by (java.lang.ClassNotFoundException:org.docx4j.wml.PgMar not found by lucee.core [48];java.lang.ClassNotFoundException:org.docx4j.wml.PgMar;java.lang.ClassNotFoundException:org.docx4j.wml.PgMar;)
I've removed it from the attached docx4j-helloworld (saved as .TXT as .CFM won't upload here), the file docx4j-helloworld-margin.txt contains the failing code.
I took a look inside the jar and I do note that there is no WML folder, so I wonder if that has anything to do with it?
Greatly appreciate any guidance that anybody can give to me.