Kris, Don't know if this helps, but here is some code I had working for me:
document = createObject("Java", "com.lowagie.text.Document").init(); os = createObject("java", "java.io.ByteArrayOutputStream").init(); writer = createObject("Java", "com.lowagie.text.pdf.PdfWriter").getInstance(document, os); document.open(); That help for you? Mark On 8/30/06, Kris Jones <[EMAIL PROTECTED]> wrote: > Mark, I had thought this would be the answer but I was getting a > NullPointerException. There must be some other issue with my code. The > CF way of referencing the Java libs is new to me, so it helps to have > more experienced minds verifying my assumptions. Thanks so much. > > And Dan, I grabbed a bit of your examples yesterday, and found a few > others as well. They have been very helpful. Between that and the > iText tutorials, I will hopefully make my way. Thanks again. > > Cheers, > Kris > > > When accessing a static method, all you need to do is do the > > createObject() call - this gives you access to the class (per se), if > > you want an actual instance of the object, that would be when you call > > init(). > > > > So in your case it would be: > > > > fso = > > createobject("java","com.lowagie.text.pdf.PdfWriter).getInstance(document, > > myPDF); > > > > As you had originally written. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251452 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4