Make sure the file extension is FDF > -----Original Message----- > From: Joel Blanchette [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2003 4:51 PM > To: CF-Talk > Subject: RE: FDF creation (PDF) > > > Hey Jeff, > I just tried your idea and t is close...When I ran the script it > gave me the pdf with only what was inside the tag... > > You can view it here : http://64.42.203.147/forms/test.pdf > > Below is the new code > > > > <!--- <CFCONTENT TYPE="application/vnd.fdf"> ---> > <CFSAVECONTENT VARIABLE="Test"> > <CFOUTPUT>%FDF-1.2 > 1 0 obj << > /FDF << > /Fields > [ > </CFOUTPUT> > > <CFLOOP COLLECTION="#VarStruct#" ITEM="VarName"> > <CFIF '#VarName#' NEQ 'PDFURL'> > <CFOUTPUT> << /T (#VarName#) /V > (#Evaluate("VarStruct.#VarName#")#)>> > </CFOUTPUT> > </CFIF> > </CFLOOP> > > <CFOUTPUT> ] > /F (#VarStruct.PDFURL#) > >> > >> > endobj > trailer > <</Root 1 0 R>> > %%EOF > </CFOUTPUT> > </CFSAVECONTENT> > <CFFILE ACTION="write" > FILE="D:\xxxxxxxx\xxxxxxxxx\xxxxxxxx\www\forms\test.pdf" > OUTPUT="#Test#"> > <CFLOCATION URL="http://64.42.203.147/forms/test.pdf" ADDTOKEN="NO"> > > > > ============================== > Joel Blanchette > IT and System Specialist > Point of Impact Technologies Inc. > Tel: (204) 989-0013 > Email: [EMAIL PROTECTED] > ============================== > > > -----Original Message----- > From: Jeff Garza [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2003 3:24 PM > To: CF-Talk > Subject: Re: FDF creation (PDF) > > > Basically, get rid of the CFCONTENT tag and wrap everything with a > CFSAVECONTENT tag instead and pass the variable on to CFFILE. Then > relocate to the newly created file on the server. > > HTH, > > Jeff Garza > > ----- Original Message ----- > From: "Joel Blanchette" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Wednesday, July 16, 2003 12:50 PM > Subject: FDF creation (PDF) > > > Hello All > I have this pdf with form field inside. I am using the PDFFormFiller > custom tag > (http://www.macromedia.com/cfusion/exchange/index.cfm#loc=en_us&view=sn1 > 31&viewName=ColdFusion%20Extension&extID=1001002) > > To implement the values in the pdf. Now the problem with this tag I > that I need to save the new pdf file on the server then show it to the > user with a redirect. > > What do I have to change in the code to make this happen. > > <CFCONTENT TYPE="application/vnd.fdf"> > > <CFOUTPUT>%FDF-1.2 > 1 0 obj << > /FDF << > /Fields > [ > </CFOUTPUT> > > <CFLOOP COLLECTION="#VarStruct#" ITEM="VarName"> > <CFIF '#VarName#' NEQ 'PDFURL'> > <CFOUTPUT> << /T (#VarName#) /V (#Evaluate("VarStruct.#VarName#")#)>> > </CFOUTPUT> > </CFIF> > </CFLOOP> > > <CFOUTPUT> ] > /F (#VarStruct.PDFURL#) > >> > >> > endobj > trailer > <</Root 1 0 R>> > %%EOF > </CFOUTPUT> > > > > ============================== > Joel Blanchette > IT and System Specialist > Point of Impact Technologies Inc. > Tel: (204) 989-0013 > Email: [EMAIL PROTECTED] ============================== > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

