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:333034
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm