With iText you have to do a bunch of stupid things to each object before you use it and leaving it blank or the defaults will cause errors. It's a big pain to debug. Just keep saying "fill all the buckets or the bucket with break", over and over like a nut while you code iText.
Here is some code to play around with. I am not sure if I am the grandfather of iText and CF but I know my first java solutions where iText based and I have coding CF & java for 5 years or so. I see people are starting code snip my stuff http://www.reactivevision.com/coldPDF.txt I don't think that snip works and it looks like old code. What was Robert Everland III thinking. Voice PDF CFC??? That classloader will not work because its page level. <cftry> <cfset PageSize = createObject("java", "com.lowagie.text.PageSize").init()> <cfset document = createobject("java", "com.lowagie.text.Document").init( PageSize.A4, 0, 0, 0, 0)> <cfset document.setPageSize(PageSize.Letter) /> <cfset document.setMargins(10,10,10,10) /> <cfset Paragraph = createObject("java", "com.lowagie.text.Paragraph").init("Hello World2")> <cfset myPDF = createObject("java","java.io.FileOutputStream ").init("c:\\test.pdf")> <cfset fso = createobject("java","com.lowagie.text.pdf.PdfWriter").getInstance(document, myPDF)> <cfset document.open()> <cfset document.add(Paragraph)> <cfdump var="#document.isOpen()#"> <cfset document.close()> <cfcatch type="any"> <cfdump var="#cfcatch#"> </cfcatch> </cftry> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:251430 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4