What?!  Your stuff?!?

Isn't iText and it's instantiation etc in the public domain? Do you work
with Bruno etc on iText?

I'm aghast.











"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Dan Plesse
To: CF-Talk
Sent: Wed Aug 30 00:06:17 2006
Subject: Re: calling Java static method

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:251433
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to