<cfheader name="Content-Disposition" value="inline; filename=survey.pdf">
<cfcontent type="application/pdf" reset="true" variable="#content#">

This works for me, try attachments inline..

On Mon, Jul 24, 2017 at 4:31 PM, Angeli Wahlstedt <[email protected]>
wrote:

> Long time, no talk. Here's a head-scratcher that I want to bounce off you
> folks. A client just told me that a CFM page which generates a PDF document
> for displaying in the browser doesn't work quite right in Google Chrome. It
> displays the PDF content correctly, but when you select to download the
> document, it defaults as the name "receipt.cfm" rather than, say,
> "receipt.pdf" which confuses customers. (If you rename it as "receipt.pdf",
> it saves correct, but still...)  Here's the complete code:
>
> <cfinclude template="inc_generateReceipt.cfm" />
> <cfheader name=“Content-Disposition” value=“attachment;filename=receipt.pdf”
> />
> <cfcontent type="application/pdf" reset="true"
> variable="#variables.PDFContent#" />
>
> (The included template obviously generates the PDF document using
> CFDocument.) No matter what I try, the browser still says "receipt.cfm" for
> the PDF document. Firefox also has a similar issue -- it says
> "document.pdf" instead of "receipt.pdf". I've Googled to no avail.
>
> The production server is running CF 10, and I've replicated the same issue
> on CF 11. Any thoughts?
>
> Thanks,
> Angeli Wahlstedt
> IdeaSculpt LLC
>
> --
> --
> You received this message because you are subscribed to the "Houston
> ColdFusion Users' Group" discussion list.
> To unsubscribe, send email to [email protected]
> For more options, visit http://groups.google.com/group/houcfug?hl=en
>
> --- You received this message because you are subscribed to the Google
> Groups "Houston ColdFusion Users' Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Houston ColdFusion 
Users' Group" discussion list.
To unsubscribe, send email to [email protected]
For more options, visit http://groups.google.com/group/houcfug?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Houston ColdFusion Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to