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="NO"><cfinclude
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: A&W 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