Glenn,

Mine does that too but I click cancel and it comes up anyway.

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-----Original Message-----
From: Glenn Hartong [mailto:gl...@glickcf.com] 
Sent: Tuesday, April 20, 2010 9:54 AM
To: cf-talk
Subject: PDF generation in Chrome and Safari


Hi all,

I'm trying to generate a PDF. Should be easy right?

Problem is, Chrome and Safari throw this error in Acrobat:
"Cannot use Adobe Reader to view PDF in your web browser. Reader will now
exit. Please exit your browser and try again."

Firefox and IE are fine.

I want the download option not the display in browser option. That would
solve this problem I believe. I've used cfheader with value="attachment;
filename=file.ext" and it has worked in the past, but I can't verify I was
doing it with PDFs.

Here's my code:

<cfsavecontent variable="myPDF">
        CERTIFICATE STUFF HERE
</cfsavecontent>
<cfdocument format="pdf">
        <cfoutput>#myPDF#</cfoutput>
</cfdocument>
<cfheader name="Content-Disposition" value="attachment;
filename=certificate.pdf">
<cfcontent type="application/pdf">

Any help will be greatly appreciated.
Glenn




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to