If't in the WEB-INF/classes/lib folder
I've referenced it as an external resource in Form Properties.
Beyond that, I can't figure out how to use it.
Do I have to do an importPackage in my script?
Nothing I've tried seems to give my script access to any of the functionality of this class.
This is the code:
Code: Select all
importPackage(com.ebasetech.xi.api);
importPackage(com.ebasetech.xi.services);
importPackage(org.apache.pdfbox.util.PDFMergerUtility);
var merger = new PDFMergerUtility();
com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler$RhinoScriptException: Function importPackage must be called with a package; had "[JavaClass org.apache.pdfbox.util.PDFMergerUtility]" instead. (MERGEPDFS#3)
And, if I remove the importPackage line, I get this error:
What am I missing?com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler$RhinoScriptException: ReferenceError: "PDFMergerUtility" is not defined. (MERGEPDFS#5)