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
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