title: ColdFusion PDF "Open with" or "save file" prompt
body: <p>How can I create a pop up that allows the user to "open with" or to save file as when dealing with coldfusion pdf's? </p>
  
  <p><img src="https://i.stack.imgur.com/XCPmg.png" alt="enter image description here"></p>
  
  <p>I am trying to figure out how to create it when this form is not actually mine and I am just using and prefilling a form that already exists.</p>
  
  <pre><code>&lt;cfpdfform source="82040.pdf" action="populate"&gt;
     &lt;cfpdfformparam name="cust ##" value=""&gt; &lt;!---Section1 Customer Number---&gt;
  &lt;/cfpdfform&gt;
  </code></pre>
  
  <p>I was able to create this pop up by doing something like this:</p>
  
  <pre><code>&lt;cfsetting enablecfoutputonly="true"&gt;
  &lt;cfcontent type="application/pdf"&gt;
  &lt;cfheader name="Content-Disposition" value="attachment;filename=test.pdf"&gt;
  &lt;cfdocument format="PDF" localurl="yes" 
      marginTop=".25" marginLeft=".25" marginRight=".25" marginBottom=".25" 
      pageType="custom" pageWidth="8.5" pageHeight="10.2"&gt;
  &lt;cfoutput&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;PDF Export Example&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/cfoutput&gt;
  &lt;/cfdocument&gt;
  </code></pre>
  
  <p>But am not sure how I can combine these two. Any help is greatly appreciated!</p>
  
  <p>Per Request What I have tried:</p>
  
  <pre><code>&lt;cfset tempFilePath = "c:/path/to/someUniqueFileName.pdf"&gt;
  &lt;cfpdfform source="82040.pdf" action="populate" destination="#tempFilePath#"&gt;
      &lt;cfpdfformparam name="org" value="Yes"&gt; &lt;!---Above Section1 Original ---&gt;  &lt;!---On---&gt;
  &lt;/cfpdfform&gt;
  &lt;cfheader name="Content-Disposition" value="attachment;filename=Testme.pdf"&gt;
  &lt;cfcontent type="application/pdf" file="#tempFilePath#" deleteFile="false"&gt;
  </code></pre>