It's been a few years since I had to work with FDFs so forgive me if my info is a bit off, but... my understanding is that you don't need to attach the PDF, just the FDF. Note the line in the FDF that begins with "/F." It indicates a URL from where the PDF can be downloaded. What should happen is that the recipient opens the FDF, Acrobat sees that /F bit and downloads the indicated PDF, filling in the fields as indicated in the FDF.
-- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: Adam Sokolic [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 10:51 AM > To: CF-Talk > Subject: Help attaching a dynamic pdf to an email > > > I'm attempting to generate a pdf through fields in a database (this part I > have working fine) and then take that pdf file and attach it to an email. > I'm using the Max Paperno tutorial to accomplish this, so the code reads: > > <CFHEADER NAME="Content-Disposition" VALUE="inline; filename=gift.fdf"> > <CFCONTENT TYPE="application/vnd.fdf"> > <cfinclude template="gift.fdf"> > > And all my variables fill in. However when, I then go to attach > the file to > an email (using cfmail with a cfmailparam tag) it attaches the > original pdf > which shows the cf variable names instead of the actaual dynamic data. > > My fdf file reads as: > <cfoutput> > %FDF-1.2 > %âãÏÓ > 1 0 obj > << > /FDF << /Fields [ << /V (#expdate#)/T (expdate)>> << /V (#serialnum#)/T > (serialnum)>> > << /V (#clubrenewal.username#)/T (username)>> ] > /F (http://www.gostarpower.com/club/coupon/gift.pdf)/ID [ > <592d65d9f72506dde1135c341d9fdab9><3b3abd4eb0b65949c24c7ebb37fb1f7f> > ] >> > >> > endobj > trailer > << > /Root 1 0 R > > >> > %%EOF </cfoutput> > > I know that activepdf would most likely accomplish this, but I'm > not at the > point of wanting to spend $$ on it. > > Any help or thoughts would be greatly appreciated. > > Thank you, > Adam M. Sokolic > > STAR POWER Systems, Inc. > Web Developer > Boulder, CO > > Phone:303-209-0219 or 1-800-635-6750 x219 > Fax: 303-449-4222 > > E-Mail: [EMAIL PROTECTED] > > Visit the STAR POWER® Online Network: http://www.GoStarPower.com (Company > Info, Chats, Events, Product Resources) > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists