Yes, I have included the JARs in the Build path (Referenced Libraries).
This code
try {
print("1");
importPackage(com.lowagie);
print("2");
var newPDF:com.lowagie.text.Document = new com.lowagie.text.Document();
print("3");
var writer = com.lowagie.text.pdf.PdfWriter.getInstance(newPDF,
facesContext.getExternalContext().getResponse().getOutputStream());
print("4");
} catch (e) {
print("Error: " + e.toString());
}
produces this output
HTTP JVM: 1
HTTP JVM: 2
HTTP JVM: Error: com.ibm.jscript.InterpretException: Script interpreter error, line=5, col=69: Reference error: 'com' not found
I am using iText 2.1.7. I guess you are using iText 5 (as your code suggests). I even tried that using the example given in this link:
But no success. Is there I need to do something on the server? I am really not able to get past this one?? Please help!!
Additional information:
- Domino Designer Release 8.5.1FP5
- Trying it on localhost
- For iText 2.1.7 included only one JAR : iText-2.1.7
- For iText 5.1.0 included this JAR : itextpdf-5.1.0 & itext-xtra-5.1.0