http://kb2.adobe.com/cps/405/kb405461.html

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


On 20 April 2010 22:53, Glenn Hartong <gl...@glickcf.com> wrote:

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

Reply via email to