Re: iText version in CF9
On Monday 15 Mar 2010, Craigsell wrote: I jsut started working with iText version 5.0.1 from my CF8 8.0.0 instance. Soon we will be migrating to CF9. Does anyone know the itext version that ships with CF9 and if there are any differences with the latest version? I know the new version was refactored so that it no longer conflicts with the older one. We're accessing iText through the JavaLoader (on RIAForge) project so we don't have to worry about these things. The only way to know for sure in your case would be to run it and see, but if it makes a subtle change in the output you wont know with eye balling every output... -- Helping to vitalistically engage appliances as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331926 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFPDFForm and iText signature
I am using CFPDFForm to populate a PDF form with data from a database and save it to the server. This works fine. I open it and the data is in the PDF. I added another step to the CFM page that after CFPDFForm saves the file I run iText to apply a signature to the PDF and flatten the form. I open the new PDF with the signature and all my form data is gone. Only the signature is on the PDF. I thought maybe it was a timing issue that CFPDFForm was not saving the file before iText got a hold of it. This is not the case. I can take the CFPDFform generated PDF and only run the iText code on it and the form data is never retained. Only the signature is on the PDF. I opened the PDF with form data in Acrobat and did a save. Ran my iText code on it and the form data and signature was on the PDF. I am baffled. I dont understand why when I run the iText signature code that the data put into the form by CFPDFForm would be deleted. Ideas? Thanks, Cha ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332003 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFPDFForm and iText signature
Hmmm I had to add a CFPDF flatten=yes tag after CFPDFForm to flatten the PDF before stepping into the iText code. Slows the page WAY down, but that is the only solution I have found so far. -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Monday, March 22, 2010 3:31 PM To: cf-talk Subject: CFPDFForm and iText signature I am using CFPDFForm to populate a PDF form with data from a database and save it to the server. This works fine. I open it and the data is in the PDF. I added another step to the CFM page that after CFPDFForm saves the file I run iText to apply a signature to the PDF and flatten the form. I open the new PDF with the signature and all my form data is gone. Only the signature is on the PDF. I thought maybe it was a timing issue that CFPDFForm was not saving the file before iText got a hold of it. This is not the case. I can take the CFPDFform generated PDF and only run the iText code on it and the form data is never retained. Only the signature is on the PDF. I opened the PDF with form data in Acrobat and did a save. Ran my iText code on it and the form data and signature was on the PDF. I am baffled. I dont understand why when I run the iText signature code that the data put into the form by CFPDFForm would be deleted. Ideas? Thanks, Cha ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332015 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
iText version in CF9
I jsut started working with iText version 5.0.1 from my CF8 8.0.0 instance. Soon we will be migrating to CF9. Does anyone know the itext version that ships with CF9 and if there are any differences with the latest version? I know the new version was refactored so that it no longer conflicts with the older one. Thanks! Warren Koch ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331773 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: iText PDF signature
We're using iText-2.0.7.jar + javaLoader + CF 7 Std with success. Please take a look this code to insert an image and a description in your PDF signed: cffunction name=signPDF cfargument name=pathPDF required=yes cfargument name=pathPDFSigned required=yes cfargument name=pathArqPFX required=yes cfset var local = StructNew() cfset local.pathPDF = arguments.pathPDF cfset local.pathPDFSigned = arguments.pathPDFSigned cfset local.pathArqPFX = arguments.pathArqPFX cfif NOT CompareNoCase(local.pathPDF,local.pathPDFSigned) cfreturn false /cfif cfscript setReason='ACME Corporation'; setPassword='yourPFXPassword'; setLocation='Your City-State'; fullPathToPFXFile = local.pathArqPFX; fullPathToOriginalFile = local.pathPDF; fullPathToSignedFile = local.pathPDFSigned; string = createObject(java,java.lang.String); passwordSign = string.init(setPassword); keyStore = createObject(java,java.security.KeyStore).getInstance(pkcs12); privateKey = createObject(java,java.security.PrivateKey); inputStream = createObject(java,java.io.FileInputStream).init(fullPathToPFXFile); keyStore.load(inputStream, passwordSign.toCharArray()); keyStoreAlias = keyStore.aliases().nextElement(); privateKey = keyStore.getKey(keyStoreAlias, passwordSign.toCharArray()); chainArray = keyStore.getCertificateChain(keyStoreAlias); pdfReader = server[application.javaLoaderInit].create(com.lowagie.text.pdf.PdfReader).init(fullPathToOriginalFile); outStream = createObject(java,java.io.FileOutputStream).init(fullPathToSignedFile); pdfStamper = server[application.javaLoaderInit].create(com.lowagie.text.pdf.PdfStamper); pdfVersion = string.init(URLDecode('%00')).charAt(0); stamper = pdfStamper.createSignature(pdfReader, outStream, pdfVersion); signatureAppearance = stamper.getSignatureAppearance(); PdfSignatureAppearance = server[application.javaLoaderInit].create(com.lowagie.text.pdf.PdfSignatureAppearance); signatureAppearance.setCrypto( privateKey, chainArray, javacast(null, 0),PdfSignatureAppearance.WINCER_SIGNED); signatureAppearance.setReason(setReason); signatureAppearance.setLocation(setLocation); rectangle = server[application.javaLoaderInit].create(com.lowagie.text.Rectangle).init( javacast(float, 100), javacast(float, 100), javacast(float, 200), javacast(float, 200) ); signatureAppearance.setVisibleSignature( rectangle, javacast(int, 1), javacast(null, ) ); signatureAppearance.setCertificationLevel(signatureAppearance.CERTIFIED_NO_CHANGES_ALLOWED); stamper.close(); inputStream.close(); pdfReader.close(); outStream.close(); return true; /cfscript /cffunction Cheers Marco Antonio On Thu, Mar 11, 2010 at 7:12 PM, Chad Gray cg...@careyweb.com wrote: Hello, I am working with iText that comes with CF8 and I dont see these methods in com.lowagie.text.pdf.PdfSignatureAppearance setRenderMode setSignatureGraphic I want to create a signature in a PDF that has an image like this example code is doing: http://itextpdf.com/examples/index.php?page=exampleid=221 Anyone figured out how to get an image and description into a PDF signature? If I use the method setImage that is in the CF8 class the image is laid on top of the description and you cannot read it. Thanks, Cha ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331637 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: iText PDF signature
Thanks for the suggestions Paul. I dont see any setRender or setSignatureGraphic method. Are you on CF9? Maybe that is the difference. All I have is setImage and setImageScale. These lay an image behind the text in the signature. I did find that I can do setLayer2Text to blank and it will clear the type on top of the image. So maybe that is the route I will go. I really dont feel like monkey'ing around with replacing iText in CF8. Thanks again, Chad -Original Message- From: Paul Hastings [mailto:p...@sustainablegis.com] Sent: Thursday, March 11, 2010 8:38 PM To: cf-talk Subject: Re: iText PDF signature On 3/12/2010 5:12 AM, Chad Gray wrote: I want to create a signature in a PDF that has an image like this example code is doing: http://itextpdf.com/examples/index.php?page=exampleid=221 that's for the latest version of iText not the one shipped with cf. you can drop the new version into cfs class path or use mark's javaLoader away you go (but make sure you read the new licensing first). on the plus side is that the new version's class, etc names have changed so no classpath hell w/existing cf version. ---or--- if you want to use the existing version maybe this will help: setRenderingMode === setRender Sets the rendering mode for this signature setSignatureGraphic === setSignatureGraphic (still there), it's looking for a com.lowagie.text.Image ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331654 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
iText PDF signature
Hello, I am working with iText that comes with CF8 and I dont see these methods in com.lowagie.text.pdf.PdfSignatureAppearance setRenderMode setSignatureGraphic I want to create a signature in a PDF that has an image like this example code is doing: http://itextpdf.com/examples/index.php?page=exampleid=221 Anyone figured out how to get an image and description into a PDF signature? If I use the method setImage that is in the CF8 class the image is laid on top of the description and you cannot read it. Thanks, Cha ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331618 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: iText PDF signature
On 3/12/2010 5:12 AM, Chad Gray wrote: I want to create a signature in a PDF that has an image like this example code is doing: http://itextpdf.com/examples/index.php?page=exampleid=221 that's for the latest version of iText not the one shipped with cf. you can drop the new version into cfs class path or use mark's javaLoader away you go (but make sure you read the new licensing first). on the plus side is that the new version's class, etc names have changed so no classpath hell w/existing cf version. ---or--- if you want to use the existing version maybe this will help: setRenderingMode === setRender Sets the rendering mode for this signature setSignatureGraphic === setSignatureGraphic (still there), it's looking for a com.lowagie.text.Image ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331624 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: iText and CF issues
Thanks for replying. We are currently running this against a CF7 environment. I have tried a variety of parameters. 1. flags, setflags, clrflags (using PdfAnnotation constants) 2. fflags, setfflags, clrfflags (using PdfFormField constants) No change occurs to the PDF document. I should mention that I added a couple extra lines after setFieldProperty (even though the code above doesn't show it). bRet = pdfForm.regenerateField( JavaCast(string, text1) ); WriteOutput(regenerateField of text1 - bRet: #bRet#br); I noticed this in a few other snippets as well as the iText book examples. Even though bRet return YES. It didn't seem to make a difference in making a PDF form field Read Only. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331461 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
iText and CF issues
This was forwarded to me by one of my coworkers...I wonder if anyone has some experience and possible insight onthe issue here... Below is the content of what we are currently trying to do with iText. *PROBLEM:* Read an existing PDF, populate form field values and change form fields to Read-Only. *SOLUTION:* According to several references, it looks like it should be possible to use the setFieldProperty method of AcroFields Class. *RESULTS:* Currently, form field values are updated correctly, but we are not able to change the Read-only property. *REPORTING ENVIRONMENT* ColdFusion: 7.x (using JVM 1.4x) iText: 2.1.7 Acrobat PDF: v6+ Files *CODE REFERENCES* Read-Only Example: http://www.itextpdf.com/examples/index.php?page=exampleid=161 AcroFields Reference: http://tom.tharrisx.homedns.org/sm3rdpartyref/itext-docs-2.0.4/com/lowagie/text/pdf/AcroFields.html *ColdFusion Source Code* cfscript //-- // FILENAME: iText_demo.cfm // PURPOSE: Populate form fields and make a field Read Only using iText v2.1.7 library. // // CREATED: 03/05/2010 //-- fullPathToInputFile = expandpath(testTemplate.pdf); // full path to PDF you want to modify // full path to the PDF we will output. Using creatUUID() to create // a unique file name so we can delete it afterwards tempFilename = #createUUID()#.pdf; fullPathToOutputFile = expandpath(tempFilename); ipaths = arrayNew(1); arrayAppend(ipaths,C:\CFusionMX7\jlib\iText-2.1.7.jar); myloader = createObject(component, javaloader.JavaLoader).init(ipaths); // Step 1: Read in the source pdf reader = myloader.create(com.lowagie.text.pdf.PdfReader).init( fullPathToInputFile ); PageSize = myloader.create(com.lowagie.text.PageSize); document = myloader.create(com.lowagie.text.Document).init(PageSize.LETTER); // Step 2: Create an output stream for the destination file outStream = createObject(java, java.io.FileOutputStream).init( fullPathToOutputFile ); // Step 3: Open a stamper for generating the new pdf file stamper = myloader.create(com.lowagie.text.pdf.PdfStamper).init( reader, outStream ); PdfAnnotation = myloader.create(com.lowagie.text.pdf.PdfAnnotation); TextField = myloader.create(com.lowagie.text.pdf.TextField); AcroFields = myloader.create(com.lowagie.text.pdf.AcroFields); pdfForm = stamper.getAcroFields(); // get the form fields // Set value of PDF form fields bRet = pdfForm.setField(text1, Some text for 'text1' field); WriteOutput(setField - bRet: #bRet#, value[#pdfForm.getField('text1')#]br); // Results: bRet is consistently YES and field is updated correctly bRet = pdfForm.setField(text2, Some text for 'text2' field); WriteOutput(setField - bRet: #bRet#, value[#pdfForm.getField('text2')#]br); // Results: bRet is consistently YES and field is updated correctly bRet = pdfForm.setField(text3, Some text for 'text3' field); WriteOutput(setField - bRet: #bRet#, value[#pdfForm.getField('text3')#]br); // Results: bRet is consistently YES and field is updated correctly WriteOutput(PdfAnnotation.FLAGS_PRINT: #PdfAnnotation.FLAGS_PRINT#br); WriteOutput(PdfAnnotation.FLAGS_READONLY: #PdfAnnotation.FLAGS_READONLY#br); // 68 = FLAGS_PRINT | FLAGS_READONLY bRet = pdfForm.setFieldProperty(text1, flags, 68, JavaCast(null, )); WriteOutput(setFieldProperty of text1 to Read Only - bRet: #bRet#); // Results: bRet is consistently NO and no property change occurs. /* com.lowagie.text.pdf.PdfAnnotation public static final intFLAGS_HIDDEN 2 public static final intFLAGS_INVISIBLE 1 public static final intFLAGS_LOCKED 128 public static final intFLAGS_NOROTATE 16 public static final intFLAGS_NOVIEW 32 public static final intFLAGS_NOZOOM 8 public static final intFLAGS_PRINT 4 public static final intFLAGS_READONLY 64 public static final intFLAGS_TOGGLENOVIEW 256 public static final intMARKUP_HIGHLIGHT 0 public static final intMARKUP_SQUIGGLY 3 public static final intMARKUP_STRIKEOUT 2 public static final intMARKUP_UNDERLINE 1 */ stamper.close(); // close the stamper and output our new PDF reader.close();// close the reader / ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331446 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: iText and CF issues
On 3/9/2010 12:11 AM, Eric Roberts wrote: bRet = pdfForm.setFieldProperty(text1, flags, 68, JavaCast(null, )); just glancing thru your code: - have you tried setflags, etc.? - if you set it to only RO does it work? - have you tried w/the constant values or javaCast flags? bRet = pdfForm.setFieldProperty(text1, flags, off the top of my head, can't recall if it's F or FF entries that need to be set, setflags vs setfflags, etc. textField.FF_READ_ONLY, or javacast(64,int) JavaCast(null, )); ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331450 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: iText and CF issues
We were just having a talk about sending null via a java function and apprently that wasn't possible until cf7...we are running 6.1 Eric On Mon, Mar 8, 2010 at 1:31 PM, Paul Hastings p...@sustainablegis.comwrote: On 3/9/2010 12:11 AM, Eric Roberts wrote: bRet = pdfForm.setFieldProperty(text1, flags, 68, JavaCast(null, )); just glancing thru your code: - have you tried setflags, etc.? - if you set it to only RO does it work? - have you tried w/the constant values or javaCast flags? bRet = pdfForm.setFieldProperty(text1, flags, off the top of my head, can't recall if it's F or FF entries that need to be set, setflags vs setfflags, etc. textField.FF_READ_ONLY, or javacast(64,int) JavaCast(null, )); ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331451 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: iText and CF issues
On 3/9/2010 2:18 AM, Eric Roberts wrote: We were just having a talk about sending null via a java function and apprently that wasn't possible until cf7...we are running 6.1 write up a small java class to return a NULL? i recall this being discussed way back when in the forums or here ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331453 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF7 iText to Merge PDFs - Examples?
I'm in CF7 and want to merge two PDFs. I've been doing some reading, and it seems that the cfDocument tag uses the iText libraries under the hood. If so, does that mean they're already installed because my CF7 has cfDocument? If I already have the iText libraries, does anyone have any example ColdFusion code for merging two PDFs? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327842 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF7 iText to Merge PDFs - Examples?
If so, does that mean they're already installed because my CF7 has cfDocument? Yes. Though it is an older version of iText. The usual location is something like: c:\CFusionMX7\lib\iText.jar If I already have the iText libraries, does anyone have any example ColdFusion code for merging two PDFs? http://cfsearching.blogspot.com/2007/12/getting-started-with-itext-part-17.html .. or for the smart/lazy, there are some utility classes in the iText.jar for stuff like concatenation, watermarking, etc. At least in the CF8 version. -Leigh ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327846 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
AcroForm the one with .pdf extension. -- From: Jochem van Dieten joch...@gmail.com Sent: Saturday, July 04, 2009 2:45 AM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms On Thu, Jul 2, 2009 at 5:16 PM, Arsalan Tariq Keen wrote: Does anyone has any experience of populating PDF forms using iText. AcroForm or XFA? Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324213 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Thanks Paul thanks for the very helpful link now finally I have populated an AcroPDF form using Railo 3.1 :) and the great thing ... Railo has iText classes already bundeled so I didn't have to even add a single file to my Railo's Express Installation :D For people who want to use this here is the link for the tutorial (blog): http://cfsearching.blogspot.com/2007/12/getting-started-with-itext-part-15.html Regards, Arsalan -- From: Paul Hastings p...@sustainablegis.com Sent: Friday, July 03, 2009 9:31 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Arsalan Tariq Keen wrote: come on guys ... doesn't anyone here has answer to my problem?? it was already answered on the railo list (here previously). itext is distributed w/railo. it powers it's cfdocument cfpdf. if you want ease of use, use the built-in tags. if you want insane control over your PDF docs, use itext. if you use itext, first thing is buy bruno's book from manning: http://www.manning.com/lowagie/ if you use itext more than once, it's by far the best investment you'll ever make. next read the mysterious cfsearching's blog ;-) http://cfsearching.blogspot.com/search/label/iText gobs gobs of examples. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324215 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using iText with CFML for PDF forms
rather than guess, why not post to the railo list? http://groups.google.com/group/railo?hl=enpli=1 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324176 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Paul Hastings wrote: rather than guess, why not post to the railo list? Well if you are going to resort to logic ... ;) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324196 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using iText with CFML for PDF forms
Probably not, unless Gert manages to see this. For some strange reason, Adobe ColdFusion lists are populated by people with experience in Adobe ColdFusion. I imagine that Railo lists are populated by people with Railo experience. But that's just a guess. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/3 Arsalan Tariq Keen arsalk...@hotmail.com: come on guys ... doesn't anyone here has answer to my problem?? -- From: Leigh cfsearch...@yahoo.com Sent: Friday, July 03, 2009 8:25 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Paul Hastings wrote: rather than guess, why not post to the railo list? Well if you are going to resort to logic ... ;) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324200 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Arsalan Tariq Keen wrote: come on guys ... doesn't anyone here has answer to my problem?? it was already answered on the railo list (here previously). itext is distributed w/railo. it powers it's cfdocument cfpdf. if you want ease of use, use the built-in tags. if you want insane control over your PDF docs, use itext. if you use itext, first thing is buy bruno's book from manning: http://www.manning.com/lowagie/ if you use itext more than once, it's by far the best investment you'll ever make. next read the mysterious cfsearching's blog ;-) http://cfsearching.blogspot.com/search/label/iText gobs gobs of examples. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324201 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using iText with CFML for PDF forms
come on guys ... doesn't anyone here has answer to my problem?? -- From: Leigh cfsearch...@yahoo.com Sent: Friday, July 03, 2009 8:25 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Paul Hastings wrote: rather than guess, why not post to the railo list? Well if you are going to resort to logic ... ;) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324199 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using iText with CFML for PDF forms
:) nice imagination although I was just inquiring... rather trying to find out a way to dynamically populate PDF Forms with a standard CF8 engine ... not just railo :) -- From: James Holmes james.hol...@gmail.com Sent: Friday, July 03, 2009 9:24 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Probably not, unless Gert manages to see this. For some strange reason, Adobe ColdFusion lists are populated by people with experience in Adobe ColdFusion. I imagine that Railo lists are populated by people with Railo experience. But that's just a guess. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/3 Arsalan Tariq Keen arsalk...@hotmail.com: come on guys ... doesn't anyone here has answer to my problem?? -- From: Leigh cfsearch...@yahoo.com Sent: Friday, July 03, 2009 8:25 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Paul Hastings wrote: rather than guess, why not post to the railo list? Well if you are going to resort to logic ... ;) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324206 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Using iText with CFML for PDF forms
If you have CF8, use CFPDFFORM. If you have something else, use iText. Dave Watts, CTO, Fig Leaf Software -Original Message- From: Arsalan Tariq Keen arsalk...@hotmail.com Sent: Friday, 03 July, 2009 14:56 To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms :) nice imagination although I was just inquiring... rather trying to find out a way to dynamically populate PDF Forms with a standard CF8 engine ... not just railo :) -- From: James Holmes james.hol...@gmail.com Sent: Friday, July 03, 2009 9:24 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Probably not, unless Gert manages to see this. For some strange reason, Adobe ColdFusion lists are populated by people with experience in Adobe ColdFusion. I imagine that Railo lists are populated by people with Railo experience. But that's just a guess. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/3 Arsalan Tariq Keen arsalk...@hotmail.com: come on guys ... doesn't anyone here has answer to my problem?? -- From: Leigh cfsearch...@yahoo.com Sent: Friday, July 03, 2009 8:25 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Paul Hastings wrote: rather than guess, why not post to the railo list? Well if you are going to resort to logic ... ;) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324208 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
On Thu, Jul 2, 2009 at 5:16 PM, Arsalan Tariq Keen wrote: Does anyone has any experience of populating PDF forms using iText. AcroForm or XFA? Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324209 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Using iText with CFML for PDF forms
Hi Guys, Does anyone has any experience of populating PDF forms using iText. And can we use iText with ColdFusion as well? Regards, Arsalan ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324146 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Using iText with CFML for PDF forms
I don't know what iText is, but we've definitely populated PDF forms from Cold Fusion. What are you trying to do, exactly. Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4209 (20090702) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324147 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
iText is the Java library that powers the cfdocument tag. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/2 Robert Harrison rob...@austin-williams.com: I don't know what iText is, but we've definitely populated PDF forms from Cold Fusion. What are you trying to do, exactly. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324148 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Using iText with CFML for PDF forms
I would just use ColdFusion to produce the PDF. Example cfdocument format=FlashPaper pThis is a document rendered by the cfdocument tag./p /cfdocument ColdFusion may be using the iText library, but why install the java library on a CF server that already has it. Plus I'm sure using cfdocument is easier to use anyway, and ColdFusion has adapted for the use of ColdFusion inside of it already. :) -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Thursday, July 02, 2009 11:53 AM To: cf-talk Subject: Re: Using iText with CFML for PDF forms iText is the Java library that powers the cfdocument tag. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/2 Robert Harrison rob...@austin-williams.com: I don't know what iText is, but we've definitely populated PDF forms from Cold Fusion. What are you trying to do, exactly. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324149 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Using iText with CFML for PDF forms
Cfdocument won't populate pdf form fields I don't think. For that, you need to use cfpdfform, cfpdfsubform and cfpdfformparam. These are very cool tags, which I only recently started using. Will -Original Message- From: Paul Alkema [mailto:paulalkemadesi...@gmail.com] Sent: 02 July 2009 17:05 To: cf-talk Subject: RE: Using iText with CFML for PDF forms I would just use ColdFusion to produce the PDF. Example cfdocument format=FlashPaper pThis is a document rendered by the cfdocument tag./p /cfdocument ColdFusion may be using the iText library, but why install the java library on a CF server that already has it. Plus I'm sure using cfdocument is easier to use anyway, and ColdFusion has adapted for the use of ColdFusion inside of it already. :) -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Thursday, July 02, 2009 11:53 AM To: cf-talk Subject: Re: Using iText with CFML for PDF forms iText is the Java library that powers the cfdocument tag. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/2 Robert Harrison rob...@austin-williams.com: I don't know what iText is, but we've definitely populated PDF forms from Cold Fusion. What are you trying to do, exactly. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324150 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Using iText with CFML for PDF forms
You might use iText if you wanted to use the most recent version. Also, CFDocument obscures the complexity of iText and thus limits functionality that some users might want. -Original Message- From: Paul Alkema [mailto:paulalkemadesi...@gmail.com] Sent: Thursday, July 02, 2009 11:05 AM To: cf-talk Subject: RE: Using iText with CFML for PDF forms I would just use ColdFusion to produce the PDF. Example cfdocument format=FlashPaper pThis is a document rendered by the cfdocument tag./p /cfdocument ColdFusion may be using the iText library, but why install the java library on a CF server that already has it. Plus I'm sure using cfdocument is easier to use anyway, and ColdFusion has adapted for the use of ColdFusion inside of it already. :) -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Thursday, July 02, 2009 11:53 AM To: cf-talk Subject: Re: Using iText with CFML for PDF forms iText is the Java library that powers the cfdocument tag. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/2 Robert Harrison rob...@austin-williams.com: I don't know what iText is, but we've definitely populated PDF forms from Cold Fusion. What are you trying to do, exactly. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324151 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Just testing to see if my response makes it through. Please ignore. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324152 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Cfdocument won't populate pdf form fields I don't think. For that, you need to use cfpdfform, cfpdfsubform and cfpdfformparam. Correct. Is there a reason you cannot use these tags to populate your form? While you certainly could use iText (it is built in), using cfpdfform would be much simpler. Unless you need some extra functionality that cfpdfform does not provide or you are using an earlier version of CF? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324153 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Using iText with CFML for PDF forms
The code below works for me on an application where I populate a PDF form with data from entered fields (or wherever you get the data from). This might help you a bit. cfoutput !--- Initailize whatever field names you defined in your form fields below --- cfset pdf=#rootip#/#fileip#/#form.file_name#.pdf !--- here you identify the path to your pdf file --- cfset name=#trim(ReplaceList(form.name, (,), \(,\) ))# cfset address=#trim(ReplaceList(form.address, (,), \(,\) ))# cfset city=#trim(ReplaceList(form.city, (,), \(,\) ))# cfset phone=#trim(ReplaceList(form.phone, (,), \(,\) ))# cfset date1=#trim(ReplaceList(form.date, (,), \(,\) ))# cfset time1=#trim(ReplaceList(form.time, (,), \(,\) ))# cfset opt1=#trim(ReplaceList(form.opt1, (,), \(,\) ))# cfset opt2=#trim(ReplaceList(form.opt2, (,), \(,\) ))# cfsetting enablecfoutputonly=YES cfheader name=Content-Disposition value=inline; filename=#form.file_name#.fdf cfcontent type=application/vnd.fdf /cfif cfsetting enablecfoutputonly=NOcfinclude template=#form.file_name#.fdf /cfoutput Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4209 (20090702) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324155 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
cfsearch...@yahoo.com wrote: Is there a reason you cannot use these tags to populate your form?� While you cf7? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324157 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Paul Hastings wrote: Is there a reason you cannot use these tags to populate your form? cf7? Yes, that is what I am thinking. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324159 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using iText with CFML for PDF forms
Yes guys, I have am aware of the cfdocument and the new cfpdfform tags... although I havent used them for this purpose yet I m pretty sure they do any awesome job bcoz without a shadow of a doubt I feel Adobe CF is the best CF implementation :) Having said that my problem is that I am using Railo 3.1 and I am trying to figure out a way I can implement the PDF-Form population functionality using Railo 3.1 :) so any good news for me??? Regards, Arsalan -- From: Leigh cfsearch...@yahoo.com Sent: Thursday, July 02, 2009 10:57 PM To: cf-talk cf-talk@houseoffusion.com Subject: Re: Using iText with CFML for PDF forms Paul Hastings wrote: Is there a reason you cannot use these tags to populate your form? cf7? Yes, that is what I am thinking. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324162 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using iText with CFML for PDF forms
Having said that my problem is that I am using Railo 3.1 and I am trying to figure out a way I can implement the PDF-Form population functionality using Railo 3.1 :) so any good news for me??? I know very little about railo. But I _think_ it also uses iText internally. So theoretically you should be able to use iText classes simply by calling createObject(). If not, you could also try using the JavaLoader.cfc. http://javaloader.riaforge.org/ See this example that works with CF8. I would be curious to know if it does work with railo, or if needs tweaking. http://cfsearching.blogspot.com/2007/12/getting-started-with-itext-part-15.html ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324175 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
iText underline in the middle of a paragraph
Here's what I have: generalPara = paragraph.init(1. ); generalChunk = chunk.init(General); generalChunk.setUnderline(javaCast(float, 0.2), javaCast(float, -2)); generalPara.add(generalChunk); For some reason the first part of the paragraph, 1. isn't being out put to the page, and although general shows up it isn't underlined, ideas? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308057 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions [bayes SPAMTRAP]
Loathe wrote: I've got it working, now I need to figure out how to do formatting and alignment. iText is sometimes a bit too atomic when it comes to formatting (the cfteam did a great job taking much of the sweat out of using iText) but every object has alignment properties: pageNumber.setAlignment(paragraph.ALIGN_RIGHT); and you can tweak it to an insane level. Still working out page numbers http://pastebin.com/m3e0ff845 set the rtfPageNumber field on the rtfWriter2 not on the doc. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307383 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: More iText RTF Questions [bayes SPAMTRAP]
Bit by bit it's coming together for sure. While I've got your attention :) I'm getting some weird behavior. it seems to be producing a question mark (?) at weird intervals and I can't tell why. Also, the actual text of the document is produced from html entered through fckEditor. When I drop my fields in here it seems to ignore or escape the html to the page, how should I handle that? Currently I'm simply removing all HTML tags with a regular expression, the problem comes in when the field contains multiple blocks of text separated with br /. How would I make it recognize a space there? Paul Hastings wrote: Loathe wrote: I've got it working, now I need to figure out how to do formatting and alignment. iText is sometimes a bit too atomic when it comes to formatting (the cfteam did a great job taking much of the sweat out of using iText) but every object has alignment properties: pageNumber.setAlignment(paragraph.ALIGN_RIGHT); and you can tweak it to an insane level. Still working out page numbers http://pastebin.com/m3e0ff845 set the rtfPageNumber field on the rtfWriter2 not on the doc. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307392 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions [bayes SPAMTRAP]
Loathe wrote: I'm getting some weird behavior. it seems to be producing a question mark (?) at weird intervals and I can't tell why. might be an encoding issue, using any special chars, etc.? anything copy/pasted from word doc? are these showing up if you simply dump the data out to the browser? Also, the actual text of the document is produced from html entered through fckEditor. When I drop my fields in here it seems to ignore or escape the html to the page, how should I handle that? Currently I'm iText's html parsing isn't 100% (ie the package handling this html.simpleparser). you might need to massage the text yourself depending on what html tags are used. simply removing all HTML tags with a regular expression, the problem comes in when the field contains multiple blocks of text separated with br /. How would I make it recognize a space there? not following. you mean regex for whitespace? that's a \s. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307396 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: More iText RTF Questions [bayes SPAMTRAP]
By jove I think I've got it :) http://pastebin.com/mb49fe19 I've rewritten it several times now, simplifying the code until I think I have it down to just what I need and it's working just how I want it. Now, I need to figure out the body of this damned thing and I'm there. Paul Hastings wrote: Loathe wrote: I've got it working, now I need to figure out how to do formatting and alignment. iText is sometimes a bit too atomic when it comes to formatting (the cfteam did a great job taking much of the sweat out of using iText) but every object has alignment properties: pageNumber.setAlignment(paragraph.ALIGN_RIGHT); and you can tweak it to an insane level. Still working out page numbers http://pastebin.com/m3e0ff845 set the rtfPageNumber field on the rtfWriter2 not on the doc. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307397 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
More iText RTF Questions
All of these questions are in reference to creating RTF docs using iText and RtfWriter2 in ColdFusion called with the javaLoader.cfc 1. How do I create an 8.5 x 11 page? 2. How do I have a 1 margin? 3. How do I create a header that actually displays in the page? 4. How do I add page numbers, after the first page only, in the footer? I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. Any help would really be appreciated. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307324 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: More iText RTF Questions
Loathe, This is not exactly what you need (this uses iText to write a series of tiff images to a PDF), but it should show you how to use iText with CF! http://pastebin.com/m7187bf8d Chris Peterson -Original Message- From: Loathe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 7:24 AM To: CF-Talk Subject: More iText RTF Questions All of these questions are in reference to creating RTF docs using iText and RtfWriter2 in ColdFusion called with the javaLoader.cfc 1. How do I create an 8.5 x 11 page? 2. How do I have a 1 margin? 3. How do I create a header that actually displays in the page? 4. How do I add page numbers, after the first page only, in the footer? I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. Any help would really be appreciated. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307325 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions
Excellent example, thanks. I'm at the point where I can output text to the body of the RTF doc. Your example helps with the page type and margins, and helps me wrap my head around how to call the objects. Peterson, Chris wrote: Loathe, This is not exactly what you need (this uses iText to write a series of tiff images to a PDF), but it should show you how to use iText with CF! http://pastebin.com/m7187bf8d Chris Peterson -Original Message- From: Loathe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 7:24 AM To: CF-Talk Subject: More iText RTF Questions All of these questions are in reference to creating RTF docs using iText and RtfWriter2 in ColdFusion called with the javaLoader.cfc 1. How do I create an 8.5 x 11 page? 2. How do I have a 1 margin? 3. How do I create a header that actually displays in the page? 4. How do I add page numbers, after the first page only, in the footer? I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. Any help would really be appreciated. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307326 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions
Loathe wrote: 1. How do I create an 8.5 x 11 page? pageSize=createObject(java, com.lowagie.text.PageSize).init(); doc=createObject(java,com.lowagie.text.Document).init(pageSize.LETTER,0,0,0,0); 2. How do I have a 1 margin? the 0,0,0,0 bit above are the margins in points. 1=72pt. 3. How do I create a header that actually displays in the page? there's a couple of approaches to this: page events, cfsearching blog has a superb set of posts on itext cf, this one is about page events http://cfsearching.blogspot.com/2008/03/instructions-for-cf-itext.html directContent (ie stick any text/image/etc anywhere on the page): cfscript myObj = structNew(); local = structNew(); BaseFont=createObject(java, com.lowagie.text.pdf.BaseFont); bf=baseFont.createFont(BaseFont.COURIER,BaseFont.CP1252,BaseFont.EMBEDDED); myObj.document=CreateObject(java, com.lowagie.text.Document); newFile=expandPath(test.pdf); myObj.fileIO=createObject(java,java.io.FileOutputStream).init(newFile); myObj.pdfWriter=CreateObject(java, com.lowagie.text.pdf.PdfWriter); myObj.vertText=createObject(java,com.lowagie.text.pdf.VerticalText); myObj.pdfContentByte=createObject(java,com.lowagie.text.pdf.PdfContentByte); // create document myObj.document.init(); // call the static 'getInstance' factory method local.writer=myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO); // open the document myObj.document.open(); local.cb=local.writer.getDirectContent(); local.cb.beginText(); local.cb.setFontAndSize(bf, 12.0); local.cb.showTextAligned(1, 'THIS IS A TEST', 100, 100, 0); local.cb.endText(); myObj.document.close(); /cfscript 4. How do I add page numbers, after the first page only, in the footer? see #3. I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. porting from bruno's java examples to cf is fairly straightforward. where are you getting stuck? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions
Page events don't work with RTF creation, as the client renders the document when it is opened. That being said there is a footerheader object as part of the rtf writer. I called it, it isn't throwing an error, and I can see my text in the document when opened in notepad, but not in word. The last two posts have really helped me out a lot, let me clean up what I have and see where I am. Thanks man. I've sen you all over the iText forums and mailing list, you seem to be the CF community expert :) Paul Hastings wrote: Loathe wrote: 1. How do I create an 8.5 x 11 page? pageSize=createObject(java, com.lowagie.text.PageSize).init(); doc=createObject(java,com.lowagie.text.Document).init(pageSize.LETTER,0,0,0,0); 2. How do I have a 1 margin? the 0,0,0,0 bit above are the margins in points. 1=72pt. 3. How do I create a header that actually displays in the page? there's a couple of approaches to this: page events, cfsearching blog has a superb set of posts on itext cf, this one is about page events http://cfsearching.blogspot.com/2008/03/instructions-for-cf-itext.html directContent (ie stick any text/image/etc anywhere on the page): cfscript myObj = structNew(); local = structNew(); BaseFont=createObject(java, com.lowagie.text.pdf.BaseFont); bf=baseFont.createFont(BaseFont.COURIER,BaseFont.CP1252,BaseFont.EMBEDDED); myObj.document=CreateObject(java, com.lowagie.text.Document); newFile=expandPath(test.pdf); myObj.fileIO=createObject(java,java.io.FileOutputStream).init(newFile); myObj.pdfWriter=CreateObject(java, com.lowagie.text.pdf.PdfWriter); myObj.vertText=createObject(java,com.lowagie.text.pdf.VerticalText); myObj.pdfContentByte=createObject(java,com.lowagie.text.pdf.PdfContentByte); // create document myObj.document.init(); // call the static 'getInstance' factory method local.writer=myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO); // open the document myObj.document.open(); local.cb=local.writer.getDirectContent(); local.cb.beginText(); local.cb.setFontAndSize(bf, 12.0); local.cb.showTextAligned(1, 'THIS IS A TEST', 100, 100, 0); local.cb.endText(); myObj.document.close(); /cfscript 4. How do I add page numbers, after the first page only, in the footer? see #3. I've found tutorials and examples online to do all of this in pure java, but I'm having a hell of a time of it trying to convert that into CF. porting from bruno's java examples to cf is fairly straightforward. where are you getting stuck? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307328 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: More iText RTF Questions [bayes SPAMTRAP]
Loathe wrote: That being said there is a footerheader object as part of the rtf writer. I called it, it isn't throwing an error, and I can see my text in the document when opened in notepad, but not in word. post your code. btw cfsearching's not my blog. besides that blog, i recommend anybody working w/iText to cough up the bucks for bruno's book, the eBook's only $30: http://www.manning.com/lowagie/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307330 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: More iText RTF Questions [bayes SPAMTRAP]
http://pastebin.com/m635a3bd4 I've got it working, now I need to figure out how to do formatting and alignment. Still working out page numbers Paul Hastings wrote: Loathe wrote: That being said there is a footerheader object as part of the rtf writer. I called it, it isn't throwing an error, and I can see my text in the document when opened in notepad, but not in word. post your code. btw cfsearching's not my blog. besides that blog, i recommend anybody working w/iText to cough up the bucks for bruno's book, the eBook's only $30: http://www.manning.com/lowagie/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307340 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF and IText
Coldfusion uses itext when manipulating PDFs (dump created PDFs and you should find the Producer is iText 1.4 (by lowagie.com)). I have a couple questions about this: 1. Can I call iText directly? Are the libraries loaded in a manner that this would work? 2. Can I update the iText libraries to 2.1 (or a newer version) 3. Has anybody found problems installing iText (different version than 1.4) on a CF Server? 4. Is the foundation for LiveCycle iText as well? 5. Can somebody with LiveCycle find the Producer value in a PDF created by LiveCycle and report back what it is? This comes from the fact that I want to use pageoverlay or pageunderlay, which are restricted DDX in CFPDF, and so I'm now looking at other options (LiveCycle, iText, other). Very open to suggestions from anyone who's got experience on this! Stephen ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305580 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF and IText
Stephen Cassady wrote: 1. Can I call iText directly? Are the libraries loaded in a manner that this would work? yes. 2. Can I update the iText libraries to 2.1 (or a newer version) nope not w/out breaking cfdocument, etc. though you could use javaLoader go merrily on your way. 3. Has anybody found problems installing iText (different version than 1.4) on a CF Server? nope, see #3 4. Is the foundation for LiveCycle iText as well? no. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305581 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CF and IText
4. Is the foundation for LiveCycle iText as well? No. This comes from the fact that I want to use pageoverlay or pageunderlay, which are restricted DDX in CFPDF, and so I'm now looking at other options (LiveCycle, iText, other). DDX is supported only by LiveCycle Assembler. There are no open-source or free products that support DDX. CF 8 bundles a restricted version of LiveCycle Assembler. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305582 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Coldfusion using iText and HTML
Hi, I'm attempting to use the iText libs in ColdFusion and want to write my HTML to a PDF this way (I am unable to use CFDOCUMENT on my Linux installation due to a bug). I can create a simple PDF directly with the iText libs with no problem. However, when I output HTML to the itext lib, I see the HTML, not the nicely formatted tables I have created. Is there a simple fix for this? I have created a cf_pdfdocument custom tag. Here is my code (my HTML is in thisTag.generatedContent - the content between my cf_pdfdocument tags): cfif thisTag.executionMode EQ end cfscript // create a 'Document' object oDocument = createObject(java, com.lowagie.text.Document); oDocument.init(); // get an outputstream for the PDF Writer oFileIO = CreateObject(java, java.io.FileOutputStream); // call the constructor, pass the location where you want // the pdf to be created oFileIO.init(mypdf.pdf); // get a PDF Writer var oWriter = CreateObject(java, com.lowagie.text.pdf.PdfWriter); // call the static 'getInstance' factory method oWriter.getInstance(oDocument, oFileIO); // open the document oDocument.open(); // create a new paragraph oParagraph = CreateObject(java, com.lowagie.text.Paragraph); oParagraph.init(thisTag.GeneratedContent); // add the paragraph oDocument.add(oParagraph); // close the document (PDF Writer is listening and will automatically // create the PDF for us oDocument.close(); /cfscript /cfif ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303359 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion using iText and HTML
Dave, cfsearching(http://cfsearching.blogspot.com/search/label/iText) haves a wonderful library with iText and CF integration(using javaloader) integration. I'll recommend you to look that. Cheers Marco Antonio On Mon, Apr 14, 2008 at 5:54 PM, Dave Phillips [EMAIL PROTECTED] wrote: Hi, I'm attempting to use the iText libs in ColdFusion and want to write my HTML to a PDF this way (I am unable to use CFDOCUMENT on my Linux installation due to a bug). I can create a simple PDF directly with the iText libs with no problem. However, when I output HTML to the itext lib, I see the HTML, not the nicely formatted tables I have created. Is there a simple fix for this? I have created a cf_pdfdocument custom tag. Here is my code (my HTML is in thisTag.generatedContent - the content between my cf_pdfdocument tags): cfif thisTag.executionMode EQ end cfscript // create a 'Document' object oDocument = createObject(java, com.lowagie.text.Document); oDocument.init(); // get an outputstream for the PDF Writer oFileIO = CreateObject(java, java.io.FileOutputStream); // call the constructor, pass the location where you want // the pdf to be created oFileIO.init(mypdf.pdf); // get a PDF Writer var oWriter = CreateObject(java, com.lowagie.text.pdf.PdfWriter); // call the static 'getInstance' factory method oWriter.getInstance(oDocument, oFileIO); // open the document oDocument.open(); // create a new paragraph oParagraph = CreateObject(java, com.lowagie.text.Paragraph); oParagraph.init(thisTag.GeneratedContent); // add the paragraph oDocument.add(oParagraph); // close the document (PDF Writer is listening and will automatically // create the PDF for us oDocument.close(); /cfscript /cfif ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303362 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion using iText and HTML
Dave, cfsearching(http://cfsearching.blogspot.com/search/label/iText) haves a wonderful library with iText and CF integration(using javaloader) integration. I'll recommend you to look that. Cheers Marco Antonio Marco - thanks. I have looked at that and did not find my issue there. I have also done some googling as well before I posted my issue here. I am hoping someone else has run into this same issue previously. Thanks, Dave ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303365 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion using iText and HTML
OK Dave. Please look this explanation from Bruno(iText manager): http://itext.ugent.be/library/question.php?id=40 Is plain Java but is portable to ColdFusion(cfsearching can help you with examples about how to do that). Cheers Marco Antonio On Mon, Apr 14, 2008 at 6:29 PM, Dave Phillips [EMAIL PROTECTED] wrote: Dave, cfsearching(http://cfsearching.blogspot.com/search/label/iText) haves a wonderful library with iText and CF integration(using javaloader) integration. I'll recommend you to look that. Cheers Marco Antonio Marco - thanks. I have looked at that and did not find my issue there. I have also done some googling as well before I posted my issue here. I am hoping someone else has run into this same issue previously. Thanks, Dave ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303369 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion using iText and HTML [heur SPAMTRAP]
Dave Phillips wrote: problem. However, when I output HTML to the itext lib, I see the HTML, not the nicely formatted tables I have created. Is there a simple fix for this? you need to parse the HTML, HTMLWorker in chapter 14 in bruno's book (if you plan on doing any serious work w/iText, buy the book) but to quote the book you risk being disappointed when you start parsing your own HTML pages. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303371 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF8 and iText
Brad Wood wrote: I would assume not, but I don't know for sure. if you have cf8 installed run this snippet. cfscript doc=createObject(java,com.lowagie.text.Document); writeoutput(cf server version:Server.ColdFusion.ProductName# #Server.ColdFusion.ProductVersion# br iText version: #doc.getVersion()#); /cfscript ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284692 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF8 and iText
I would assume not, but I don't know for sure. When Forta was at my local user group he mentioned that the CF team was able to borrow code from the PDF department now that CF is part of Adobe and that is what made most of the cfpdf tag possible. Now that they have direct access to the pdf code, I would hope they would use it and not a third-party vendor. ~Brad -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 7:50 AM To: CF-Talk Subject: CF8 and iText Anyone know if iText is still being used in CF8 for PDF manipulation? ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284650 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 and iText
Chad Gray wrote: Anyone know if iText is still being used in CF8 for PDF manipulation? not sure about the manipulation bit but it's still there. ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284653 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF8 and iText
Anyone know if iText is still being used in CF8 for PDF manipulation? ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284628 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: iText and VerticalText
Ah ok, that has answered on eof my questions. CFDOCUMENT doesn't support the vertical text that i use in my CSS so i'll have to convert the whole piece of code to iText Gr!! Funnily enough I read somewhere that CFDOCUMENT is built using iText so you would think it would support some of its functions?? OK, I have found some code on the iText site can someone give me a hand in converting it to CF? /* FROM: http://itext.ugent.be/library/com/lowagie/examples/fonts/styles/Vertical.java * $Id: Vertical.java 1742 2005-05-09 11:52:51Z blowagie $ * $Name$ * * This code is part of the 'iText Tutorial'. * You can find the complete tutorial at the following address: * http://itextdocs.lowagie.com/tutorial/ * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * [EMAIL PROTECTED] */ package com.lowagie.examples.fonts.styles; import java.awt.Color; import java.io.FileOutputStream; import com.lowagie.text.Chunk; import com.lowagie.text.Document; import com.lowagie.text.Element; import com.lowagie.text.Font; import com.lowagie.text.PageSize; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.PdfContentByte; import com.lowagie.text.pdf.PdfWriter; import com.lowagie.text.pdf.VerticalText; /** * Writing Vertical Text. */ public class Vertical { static String texts[] = { Some very long text to check if it wraps (or not)., In blue., And now in orange another very long text., , , }; static String encs[] = {UniJIS-UCS2-V, Identity-V}; /** * @param text * @return converted text */ public static String convertCid(String text) { char cid[] = text.toCharArray(); for (int k = 0; k cid.length; ++k) { char c = cid[k]; if (c == '\n') cid[k] = '\uff00'; else cid[k] = (char)(c - ' ' + 8720); } return new String(cid); } /** * Writing vertical text. * @param args no arguments needed */ public static void main(String[] args) { Document document = new Document(PageSize.A4, 50, 50, 50, 50); try { texts[3] = convertCid(texts[0]); texts[4] = convertCid(texts[1]); texts[5] = convertCid(texts[2]); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(vertical.pdf)); int idx = 0; document.open(); PdfContentByte cb = writer.getDirectContent(); for (int j = 0; j 2; ++j) { BaseFont bf = BaseFont.createFont(KozMinPro-Regular, encs[j], false); cb.setRGBColorStroke(255, 0, 0); cb.setLineWidth(0); float x = 400; float y = 700; float height = 400; float leading = 30; int maxLines = 6; for (int k = 0; k maxLines; ++k) { cb.moveTo(x - k * leading, y); cb.lineTo(x - k * leading, y - height); } cb.rectangle(x, y, -leading * (maxLines - 1), -height); cb.stroke(); int status; VerticalText vt = new VerticalText(cb); vt.setVerticalLayout(x, y, height, maxLines, leading); vt.addText(new Chunk(texts[idx++], new Font(bf, 20))); vt.addText(new Chunk(texts[idx++], new Font(bf, 20, 0, Color.blue))); status = vt.go(); System.out.println(status); vt.setAlignment(Element.ALIGN_RIGHT); vt.addText(new Chunk(texts[idx++], new Font(bf, 20, 0, Color.orange))); status = vt.go(); System.out.println(status); document.newPage(); } document.close(); } catch (Exception de) { de.printStackTrace(); } } } ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281754 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
iText and VerticalText
Vertical Text in PDF using CFDOCUMENT I am using font tag in a CSS file to layout a table header using vertical text. In HTML, the vertical text looks fine. However, when I convert the table to a pdf using cfdocument, the vertical text is displayed as horizintal text and does not follow the css specified font family, color or size. I'm trying to use the iTEXT class VerticalText to create the text, but i'm having trouble understanding how to call the method. I have created the object using [b]myObj.vertText = createObject(java,com.lowagie.text.pdf.VerticalText);[/b] Does anyone have ideas on how to use iText and call its functions? Thanks. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281598 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: iText: The selected method setFontAndSize was not found.
That's absolute perfect thanks for your help everyone. James ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281701 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: iText and VerticalText
ally mccluskey wrote: I am using font tag in a CSS file to layout a table header using vertical text. In HTML, the vertical text looks fine. However, when I convert the table to a pdf using cfdocument, the vertical text is displayed as horizintal text and does not follow the css specified font family, color or size. not exactly sure if that's supported, can you post a simple simple example? does the rest of the CSS get applied? Does anyone have ideas on how to use iText and call its functions? yes but cfdocument is infinitely simpler to use. you'd have to generate the whole document in iText, not just the vertical bits. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281733 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: iText: The selected method setFontAndSize was not found.
You're passing the wrong object types. The API is setFontAndSize(com.lowagie.text.pdf.BaseFont, float). myObj.BaseFont = createObject(java,com.lowagie.text.pdf.BaseFont); local.bf = myObj.BaseFont.Courier; BaseFont.Courier is a string. What you need is a BaseFont object. Try using the FontFactory class or BaseFont.createFont(...) //FontFactory myObj.FontFactory = createObject(java,com.lowagie.text.FontFactory); local.bf = myObj.FontFactory.getFont(myObj.FontFactory.COURIER).getBaseFont(); //createFont() myObj.BaseFont = createObject(java,com.lowagie.text.pdf.BaseFont); local.bf = myObj.BaseFont.createFont(myObj.BaseFont.COURIER, myObj.BaseFont.CP1252, myObj.BaseFont.NOT_EMBEDDED); Then use javacast on the size like Mark mentioned. //cast the size as a float local.cb.setFontAndSize(local.bf, javacast(float, 12)); ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281488 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: iText: The selected method setFontAndSize was not found.
nm - darn lag! ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281490 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
iText: The selected method setFontAndSize was not found.
Hi everyone, Does anybody know why the following code is telling me that the method fontandsize() doesn't exist? myObj = structNew(); local = structNew(); myObj.document = CreateObject(java, com.lowagie.text.Document); myObj.fileIO = CreateObject(java, java.io.FileOutputStream); myObj.pdfWriter = CreateObject(java, com.lowagie.text.pdf.PdfWriter); myObj.vertText = createObject(java,com.lowagie.text.pdf.VerticalText); myObj.pdfContentByte = createObject(java,com.lowagie.text.pdf.PdfContentByte); myObj.BaseFont = createObject(java,com.lowagie.text.pdf.BaseFont); local.bf = myObj.BaseFont.Courier; // create a 'Document' object myObj.document.init(); // get an outputstream for the PDF Writer // call the constructor, pass the location where you want the pdf to be created myObj.fileIO.init(C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\pdfWriter\pdf\test.pdf); // call the static 'getInstance' factory method local.writer = myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO); // open the document myObj.document.open(); local.cb = local.writer.getDirectContent(); local.cb.beginText(); local.cb.setFontAndSize(local.bf, 12); local.cb.showTextAligned(1, 'THIS IS A TEST', 100, 100, 0); local.cb.endText(); - Error Message is: The selected method setFontAndSize was not found. Either there are no methods with the specified method name and argument types, or the method setFontAndSize is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. The error occurred in C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\pdfWriter\index.cfm: line 32 30 : myObj.fileIO.init(C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\pdfWriter\pdf\test.pdf); 31 :// call the static 'getInstance' factory method 32 :local.writer = myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO).setFontAndSize('Courier', 12); 33 :// open the document 34 :myObj.document.open(); Yet when I dump the writer methods I can see the setFontAndSize method sitting in the listing. I've updated my iText.jar to the latest version (2.0.4) and that hasn't fixed the problem either :( Cheers, James ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281448 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: iText: The selected method setFontAndSize was not found.
You probably need to javaCast the '12' to whatever type that the API requires. What is the API for the setFontAndSize()? Mark On 6/19/07, James Buckingham [EMAIL PROTECTED] wrote: Hi everyone, Does anybody know why the following code is telling me that the method fontandsize() doesn't exist? myObj = structNew(); local = structNew(); myObj.document = CreateObject(java, com.lowagie.text.Document); myObj.fileIO = CreateObject(java, java.io.FileOutputStream); myObj.pdfWriter = CreateObject(java, com.lowagie.text.pdf.PdfWriter); myObj.vertText = createObject(java,com.lowagie.text.pdf.VerticalText); myObj.pdfContentByte = createObject(java,com.lowagie.text.pdf.PdfContentByte); myObj.BaseFont = createObject(java,com.lowagie.text.pdf.BaseFont); local.bf = myObj.BaseFont.Courier; // create a 'Document' object myObj.document.init(); // get an outputstream for the PDF Writer // call the constructor, pass the location where you want the pdf to be created myObj.fileIO.init(C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\pdfWriter\pdf\test.pdf); // call the static 'getInstance' factory method local.writer = myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO); // open the document myObj.document.open(); local.cb = local.writer.getDirectContent(); local.cb.beginText(); local.cb.setFontAndSize(local.bf, 12); local.cb.showTextAligned(1, 'THIS IS A TEST', 100, 100, 0); local.cb.endText(); - Error Message is: The selected method setFontAndSize was not found. Either there are no methods with the specified method name and argument types, or the method setFontAndSize is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. The error occurred in C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\pdfWriter\index.cfm: line 32 30 : myObj.fileIO.init(C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\pdfWriter\pdf\test.pdf); 31 :// call the static 'getInstance' factory method 32 :local.writer = myObj.pdfWriter.getInstance(myObj.document, myObj.fileIO).setFontAndSize('Courier', 12); 33 :// open the document 34 :myObj.document.open(); Yet when I dump the writer methods I can see the setFontAndSize method sitting in the listing. I've updated my iText.jar to the latest version (2.0.4) and that hasn't fixed the problem either :( Cheers, James ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281457 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: iText: The selected method setFontAndSize was not found.
Mark Mandel wrote: You probably need to javaCast the '12' to whatever type that the API requires. naw, it's the font (static numbers should almost always go through ok--though i use a java lib that even wants strings cast). he's set it to a string (Courier). local.bf = myObj.BaseFont.Courier; got to go the extra mile: BaseFont=createObject(java, com.lowagie.text.pdf.BaseFont); bf=baseFont.createFont(BaseFont.COURIER,BaseFont.CP1252,BaseFont.EMBEDDED); // or whatever ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281487 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Itext-Coldfusion Error
http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html _Loosely_ translated, protected methods in the PdfWriter class can only be accessed by - another class within the (com.lowagie.text.pdf) package or - a subclass of the com.lowagie.text.pdf.PdfWriter class Short answer, you cannot use protected methods of the PdfWriter class here. Check the API and try using public methods instead. -Janet ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266129 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Itext-Coldfusion Error
I am trying to use the iText with coldfusion to dynamically generate a PDF on the fly (cfdocument is way too limited). I have no problem setting the images at absolute positions, however when I try to set text at absolute positions using various methods, I get an error that says Class coldfusion.runtime.java.JavaProxy can not access a member of class com.lowagie.text.pdf.PdfWriter with modifiers protected.Does anyone have any insight on this? Need help desperately. Thanks! ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266105 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Coldfusion iText
I have several issues i am trying to work out but I will take them one at a time. My first question is installing iText to CF7. I know CF7 comes with a older version of iText 1.2.8 or something like that. The newest is 1.4.8(3). If I drop this into the CF lib/ dir it breaks cfdocument. Can anyone help me with how to install the new iText jar file and it not break cfdocument or at least inlighten me about this. I would really like to use this to produce pdfs. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266006 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion iText
Steven Gekko wrote: I have several issues i am trying to work out but I will take them one at a time. My first question is installing iText to CF7. I know CF7 comes with a older version of iText 1.2.8 or something like that. The newest is 1.4.8(3). If I drop this into the CF lib/ dir it breaks cfdocument. Can anyone help me with how to install the new iText jar file and it not break cfdocument or at least inlighten me about this. I would really like to use this to produce pdfs. as you were told on the iText list: either refactor the latest iText jar to another name or use javaLoader. and again, your issue has nothing to do w/the version you're trying to install. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266018 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
iText create bookmark for a page
Another question for the iText experts: Making a copy of a PDF document (I'm actually looping through a list of documents, and putting them all together), after setting up my reader, and writer, I'm trying to add a bookmark for each page (for instance). I'm getting the bookmarks, but they don't link to any pages--not even the first page. I'm getting an Object Instantiation Exception on the copy.add() line, the Outline element is being added to the document. It just doesn't work. page=copy.getImportedPage(reader,javacast(int,p)); copy.addPage(page); newdest = dest.init(dest.FITH); copy.add(createobject(java,com.lowagie.text.pdf.PdfOutline).init(copy.getRootOutline(), newdest, page i )); I've been looking through the iText API, but can't come up with what objects I really need to be getting/setting/passing to make this work. The example on the iText Tutorials site uses a template to bookmark an object on a page. Is there a way to just reference a page? I'm seeing wondering how I can get a PdfIndirectReference for the most recent pdfImportedPage. If I can do that then I can set the PdfOutline to that indirectReference. Any thoughts? Cheers, Kris ~| 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:251699 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: iText create bookmark for a page
I searched for a solution for oyu and I found another PDF java library http://www.pdfbox.org/ This Java program allows to add structured bookmarks to an existing pdf file. The bookmarks are defined in a separate text file. http://www.physik.fu-berlin.de/~goerz/programme_en.html#pdfwritebookmarks How to create bookmarks in a PDF file with Java http://www.java-tips.org/other-api-tips/itext/how-to-create-bookmarks-in-a-pdf-file-with-java.html I never used iText but if people are getting into java then I game to provide solutions. Has anyone created a jws iText master file yet for coldfusion??? PdfReader reader = new PdfReader(TDA9800_CNV_4.pdf); java.util.List bm = SimpleBookmark.getBookmark(reader); SimpleBookmark.exportToXML(bm, new FileOutputStream(c:\\ic.xml), UTF-8, false); System.out.println(bm.toString()); If you are only passing strings to a CFC I would suggest using jws instead. On 8/31/06, Kris Jones [EMAIL PROTECTED] wrote: Another question for the iText experts: Making a copy of a PDF document (I'm actually looping through a list of documents, and putting them all together), after setting up my reader, and writer, I'm trying to add a bookmark for each page (for instance). I'm getting the bookmarks, but they don't link to any pages--not even the first page. I'm getting an Object Instantiation Exception on the copy.add() line, the Outline element is being added to the document. It just doesn't work. page=copy.getImportedPage(reader,javacast(int,p)); copy.addPage(page); newdest = dest.init(dest.FITH); copy.add(createobject(java,com.lowagie.text.pdf.PdfOutline).init( copy.getRootOutline(), newdest, page i )); I've been looking through the iText API, but can't come up with what objects I really need to be getting/setting/passing to make this work. The example on the iText Tutorials site uses a template to bookmark an object on a page. Is there a way to just reference a page? I'm seeing wondering how I can get a PdfIndirectReference for the most recent pdfImportedPage. If I can do that then I can set the PdfOutline to that indirectReference. Any thoughts? Cheers, Kris ~| 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:251709 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
PDF creation: CFDocument, iText; CF or Java libs?
Hi folks, I've been trying to refactor a long-running procedure that creates PDFs using CFDocument, then a 3rd-party tool (via CFExecute) to merge the PDFs to a single file in a specific order. After seeing discussion on this list regarding string manipulation being so much faster using direct calls to the java string lib, I'm wondering if I would see a parallel improvement in performance if I used iText directly rather than the CFDocument call. Since I know nothing about iText, I don't really want to go down that road unless I know that it will be worth it (performance-wise). I know there are few iText gurus on the list, maybe someone has some experience with this? Thanks, Kris ~| 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:251267 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF creation: CFDocument, iText; CF or Java libs?
Kris Jones wrote: Since I know nothing about iText, I don't really want to go down that road unless I know that it will be worth it (performance-wise). I know there are few iText gurus on the list, maybe someone has some experience with this? the only way you can *know* which one is faster is by testing. search the cf forums, i posted code there to merge PDFs using itext (i'm at home don't have access to the dev server). it's fairly simple. ~| 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:251271 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF creation: CFDocument, iText; CF or Java libs?
Thanks Paul. I believe that the bottleneck in the procedure I'm working on is the CFDocument call, rather than the 3rd-party split/merge program we're calling. I'm happy to look into iText, just hoping that others have some experiential knowledge about performance gains. Cheers, Kris On 8/28/06, Paul Hastings [EMAIL PROTECTED] wrote: Kris Jones wrote: Since I know nothing about iText, I don't really want to go down that road unless I know that it will be worth it (performance-wise). I know there are few iText gurus on the list, maybe someone has some experience with this? the only way you can *know* which one is faster is by testing. search the cf forums, i posted code there to merge PDFs using itext (i'm at home don't have access to the dev server). it's fairly simple. ~| 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:251274 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF creation: CFDocument, iText; CF or Java libs?
Kris Jones wrote: Thanks Paul. I believe that the bottleneck in the procedure I'm working on is the CFDocument call, rather than the 3rd-party split/merge program we're calling. I'm happy to look into iText, just hoping that others have some experiential knowledge about performance gains. pre-cf7 we used itext a bunch. these days we only use it for special case needs such as merging pdfs, pdfForms, bookmarks, etc that cfDocument doesn't yet handle or when we need an insane amount of control over the pdf (usually placing stuff at exact coords like checks, etc). we never benchmarked it to anything, just glad it worked. ~| 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:251289 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF creation: CFDocument, iText; CF or Java libs?
I have a few examples on java coldfusion list on yahoo called coldfusion java hacks. http://groups.yahoo.com/group/java_coldfusion_hacks/ There is no action on that list, just takers of my hard won work with CF and java. On 8/28/06, Kris Jones [EMAIL PROTECTED] wrote: Thanks Paul. I believe that the bottleneck in the procedure I'm working on is the CFDocument call, rather than the 3rd-party split/merge program we're calling. I'm happy to look into iText, just hoping that others have some experiential knowledge about performance gains. Cheers, Kris On 8/28/06, Paul Hastings [EMAIL PROTECTED] wrote: Kris Jones wrote: Since I know nothing about iText, I don't really want to go down that road unless I know that it will be worth it (performance-wise). I know there are few iText gurus on the list, maybe someone has some experience with this? the only way you can *know* which one is faster is by testing. search the cf forums, i posted code there to merge PDFs using itext (i'm at home don't have access to the dev server). it's fairly simple. ~| 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:251295 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF creation: CFDocument, iText; CF or Java libs?
I've got a handle on your posts on the forums. Thanks much for this. We're also interested in implementing bookmarks in the PDFs as a way to change the structure of the PDF that will make for less process intensive merging. I'm also checking out Dan's posts on his yahoo group. Great resources. Thanks guys. Cheers, Kris On 8/28/06, Paul Hastings [EMAIL PROTECTED] wrote: Kris Jones wrote: Thanks Paul. I believe that the bottleneck in the procedure I'm working on is the CFDocument call, rather than the 3rd-party split/merge program we're calling. I'm happy to look into iText, just hoping that others have some experiential knowledge about performance gains. pre-cf7 we used itext a bunch. these days we only use it for special case needs such as merging pdfs, pdfForms, bookmarks, etc that cfDocument doesn't yet handle or when we need an insane amount of control over the pdf (usually placing stuff at exact coords like checks, etc). we never benchmarked it to anything, just glad it worked. ~| 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:251320 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF creation: CFDocument, iText; CF or Java libs?
I think someone has a master file How-to iText for CF some place but i can't find it. I also remember Forta's book has some examples too. A quick google book search shows some stuff PDF Hacks - Page 235http://books.google.com/books?vid=ISBN0596006551id=3lMk9JDgsw4Cpg=PA235lpg=PA235dq=iTextsig=JQ4nKQuPS690_ta39da4K_I4iVY On 8/28/06, Kris Jones [EMAIL PROTECTED] wrote: I've got a handle on your posts on the forums. Thanks much for this. We're also interested in implementing bookmarks in the PDFs as a way to change the structure of the PDF that will make for less process intensive merging. I'm also checking out Dan's posts on his yahoo group. Great resources. Thanks guys. Cheers, Kris On 8/28/06, Paul Hastings [EMAIL PROTECTED] wrote: Kris Jones wrote: Thanks Paul. I believe that the bottleneck in the procedure I'm working on is the CFDocument call, rather than the 3rd-party split/merge program we're calling. I'm happy to look into iText, just hoping that others have some experiential knowledge about performance gains. pre-cf7 we used itext a bunch. these days we only use it for special case needs such as merging pdfs, pdfForms, bookmarks, etc that cfDocument doesn't yet handle or when we need an insane amount of control over the pdf (usually placing stuff at exact coords like checks, etc). we never benchmarked it to anything, just glad it worked. ~| 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:251325 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdocument + iText
I would like to see some type of form implementation, as well as the possibility of different output types (ie png, Tiff, etc) By form, I mean some way to take a template image / document and overlay structured text on top of it at specific locations (ie mass produced invoices, statements, etc). I ended up writing my own using iText directly to output to Tiff's. Maybe someone can correct me if I'm missing a current feature that could do it, but I didn't see one =) Chris Peterson -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 2:52 PM To: CF-Talk Subject: Re: cfdocument + iText multi-columns!!! Multi-Columns MULTI COLUMNS!! (Sorry, but I am having to write an iText implementation now just for the ability to flow text from col 1 to col 2 to col 3 to col 1 on page 2.) Everything else I need to do I can do easily from CFDOCUMENT. Jerry Johnson On 7/20/06, Rupesh Kumar [EMAIL PROTECTED] wrote: Hi Jose, Though the watermark capability is not there in cfdocument, it should be doable using background images of the html. I understand it is easily said than done as you will have to size your images carefully so that they come properly and only once on all the pages. We will try to have it in the scorpio release. Any other itext feature that you think are missing and should be there in cfdocument? ~| 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:248707 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdocument + iText
couldn't you do some type of floating div tag with the image in that? On 8/3/06, Tom Donovan [EMAIL PROTECTED] wrote: I would like to see some type of form implementation, as well as the possibility of different output types (ie png, Tiff, etc) By form, I mean some way to take a template image / document and overlay structured text on top of it at specific locations (ie mass produced invoices, statements, etc). I ended up writing my own using iText directly to output to Tiff's. Maybe someone can correct me if I'm missing a current feature that could do it, but I didn't see one =) Chris Peterson ~| 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:248715 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdocument + iText
Hi Jose, Though the watermark capability is not there in cfdocument, it should be doable using background images of the html. I understand it is easily said than done as you will have to size your images carefully so that they come properly and only once on all the pages. We will try to have it in the scorpio release. Any other itext feature that you think are missing and should be there in cfdocument? Thanks, Rupesh ~| 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/cf_lists/message.cfm/forumid:4/messageid:247227 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdocument + iText
multi-columns!!! Multi-Columns MULTI COLUMNS!! (Sorry, but I am having to write an iText implementation now just for the ability to flow text from col 1 to col 2 to col 3 to col 1 on page 2.) Everything else I need to do I can do easily from CFDOCUMENT. Jerry Johnson On 7/20/06, Rupesh Kumar [EMAIL PROTECTED] wrote: Hi Jose, Though the watermark capability is not there in cfdocument, it should be doable using background images of the html. I understand it is easily said than done as you will have to size your images carefully so that they come properly and only once on all the pages. We will try to have it in the scorpio release. Any other itext feature that you think are missing and should be there in cfdocument? ~| 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/cf_lists/message.cfm/forumid:4/messageid:247231 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfdocument + iText
I would like to see some type of form implementation, as well as the possibility of different output types (ie png, Tiff, etc) By form, I mean some way to take a template image / document and overlay structured text on top of it at specific locations (ie mass produced invoices, statements, etc). I ended up writing my own using iText directly to output to Tiff's. Maybe someone can correct me if I'm missing a current feature that could do it, but I didn't see one =) Chris Peterson -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 2:52 PM To: CF-Talk Subject: Re: cfdocument + iText multi-columns!!! Multi-Columns MULTI COLUMNS!! (Sorry, but I am having to write an iText implementation now just for the ability to flow text from col 1 to col 2 to col 3 to col 1 on page 2.) Everything else I need to do I can do easily from CFDOCUMENT. Jerry Johnson On 7/20/06, Rupesh Kumar [EMAIL PROTECTED] wrote: Hi Jose, Though the watermark capability is not there in cfdocument, it should be doable using background images of the html. I understand it is easily said than done as you will have to size your images carefully so that they come properly and only once on all the pages. We will try to have it in the scorpio release. Any other itext feature that you think are missing and should be there in cfdocument? ~| 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/cf_lists/message.cfm/forumid:4/messageid:247239 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdocument + iText
By form, I mean some way to take a template image / document and overlay structured text on top of it at specific locations (ie mass produced invoices, statements, etc). I think that would be simple with CFDOCUMENTwrite a template CFM page with variable place holders for the structured texttehn output and procude the PDFs. or have I completely missed your point? I ended up writing my own using iText directly to output to Tiff's. Maybe someone can correct me if I'm missing a current feature that could do it, but I didn't see one =) Yes...the TIFF stuff is beyond CFDOCUMENT (but VERY easy with iText..as I guess you found) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| 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/cf_lists/message.cfm/forumid:4/messageid:247242 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfdocument + iText
Hello All, I have a query regarding 'cfdocument', as has been mentioned earlier in posts people are attempting to watermark pdfs and trying various options such as background images etc. I am aware that MX7 utilises the iText library, is there a way to leverage the other options offered in the iText library bar the following listed for the cfdocument tag. cfdocument currently provides the following functionality: cfdocument backgroundvisible = yes or no encryption = 128-bit or 40-bit or none format = PDF or FlashPaper filename = filename fontembed = yes or no marginbottom = number marginleft = number marginright = number margintop = number mimetype = text/plain or text/xml or image/jpeg or image/png or image/gif name = output variable name orientation = portrait or landscape overwrite = yes or no ownerpassword = password pageheight = page height in inches pagetype = page type pagewidth = page width in inches permissions = permission list scale = percentage less than 100 src = url or path relative to web root srcfile = absolute path of file unit = in or cm userpassword = password *HTML and CFML code* /cfdocument I use the watermark as an example as this is an often used option when using iText - I have tried using the 'CreateObject' option directly but with no success. Does anyone know why the options within the cfdocument tag had been restricted not to use all the iText functionality. Many thanks Jose Diaz ~| 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/cf_lists/message.cfm/forumid:4/messageid:246930 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdocument + iText
Jose Diaz wrote: I am aware that MX7 utilises the iText library, is there a way to leverage the other options offered in the iText library bar the following listed for the cfdocument tag. yes. simply follow the examples from the itext site but be aware that the version shipped w/cf7 used by cfdocument isn't the very latest. if you want the latest itext version, you can use mark mandel's nifty javaLoader CFC to load these up from off the server classpath. i should also point out that cfdocument simplifies things enormously. the cf team did a pretty good job w/it. success. Does anyone know why the options within the cfdocument tag had been restricted not to use all the iText functionality. as far as i know, none are restricted. ~| 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/cf_lists/message.cfm/forumid:4/messageid:246938 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Itext Checkbox
How the heck do I set a checkbox field to be checked, I have tried setField(IMACHECKBOX, TRUE); setField(IMACHECKBOX, 1); setField(IMACHECKBOX, 0); setField(IMACHECKBOX, On); Nothing works, the text fields fill in correctly, this won't Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243436 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
checked? On 6/14/06, Robert Everland III [EMAIL PROTECTED] wrote: How the heck do I set a checkbox field to be checked, I have tried setField(IMACHECKBOX, TRUE); setField(IMACHECKBOX, 1); setField(IMACHECKBOX, 0); setField(IMACHECKBOX, On); Nothing works, the text fields fill in correctly, this won't Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243438 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
checked? Robert Everland III wrote: How the heck do I set a checkbox field to be checked, I have tried setField(IMACHECKBOX, TRUE); setField(IMACHECKBOX, 1); setField(IMACHECKBOX, 0); setField(IMACHECKBOX, On); Nothing works, the text fields fill in correctly, this won't ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243439 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
Negatory, checked and check didn't work. Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243440 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
Robert Everland III wrote: Nothing works, the text fields fill in correctly, this won't setField in FdfWriter? it requires a PdfObject which in this case should probably be com.lowagie.text.pdf.PdfBoolean. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243441 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
snap! On 6/14/06, |Rens| 0 [EMAIL PROTECTED] wrote: checked? Robert Everland III wrote: How the heck do I set a checkbox field to be checked, I have tried setField(IMACHECKBOX, TRUE); setField(IMACHECKBOX, 1); setField(IMACHECKBOX, 0); setField(IMACHECKBOX, On); Nothing works, the text fields fill in correctly, this won't ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243442 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
I'm using a stamper to fill in the fields of PDF. I just tried PdfBoolean.TRUE, that did not work. No errors, just won't check the checkbox. Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243443 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Itext Checkbox
Robert Everland III wrote: I'm using a stamper to fill in the fields of PDF. I just tried PdfBoolean.TRUE, that did not work. No errors, just won't check the checkbox. pdfStamper? yeah it's setField methods want strings. i guess start dumb, does getFieldType on that field return FIELD_TYPE_CHECKBOX (i think 2)? i don't recall ever dealing w/checkboxes (ie quick code search here comes up empty) but from the examples it looks like a button/widget that you have to actually draw the checkbox so i'm not exactly sure how this thing will behave as an acrofield. you might have to ask on the itext list. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243449 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54