Nando, Typically when I do PDF creation I want the user to download and save the PDF. To do that I use a combination of CFHEADER and CFCONTENT. Doing this forces the users browser to download the PDF instead of viewing it the browser. Here is an example of how to do this.
<cfdocument format="PDF" orientation="landscape" name="pdfreport" pagetype="A4" fontembed="true" backgroundvisible="true"> ---- MY PDF DOCUMENT ----- </cfdocument> <cfheader name="Content-Disposition" value="Attachment; filename=mypdf.pdf"> <cfheader name="Expires" value="#Now()#"> <cfcontent type="application/pdf" variable="#pdfreport#"> This will trigger the browser into download mode. The use clicks the link to generate and download the PDF. The page the user was on does not change. Give it a try. Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. On May 18, 2010, at 2:18 PM, Nando wrote: > > Hi, > > I'd like to run a cflocation after generating a PDF using cfdocument, > however, all efforts have failed. It seems all code after a cfdocument tag > that pushes a PDF to browser for download is ignored. > > I've even attempted to set a variable *before* running the cfdocument tag > (request.pdfComplete) and watch for it in onRequestEnd() - that doesn't work > either. The variable either isn't set or the request never makes it to > onRequestEnd() > > Any suggestions would be appreciated. > > Thanks > > -- > Nando M. Breiter > Aria Media Sagl > CP 234 > 6934 Bioggio > Switzerland > > +41 91 606 6372 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333801 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

