Hi there. On our website, we would like to generate and serve a PDF to the
user. Some of the info can be a little sensitive, so it does not seem very
secure to just store a PDF directly within the web directory and cflocation
the user to it. This means their info is readily available to anyone who
can guess the link name. So instead, as advised before, I have tried
turning to cfcontent. Whether I use type="application/octet-stream" and
link to a physical PDF or use type="application/pdf" and use a variable
referencing a virtual PDF, this works like a dream in IE9/10 and Safari.
In IE7 however (the majority of our user-base), I get the error "Internet
Explorer cannot download myTest.cfm from www.mywebsite.net. Internet
Explorer was not able to open this Internet site. The requested site is
either unavailable or cannot be found. Please try again later." I get the
same result if I add our website to the Trusted Sites list in IE. Here is
a snippet from myTest.cfm...
>
> <cfdocument format="PDF" filename="#expandPath('.')#/temp/#pgName#.pdf"
> overwrite="Yes" marginbottom=0 marginleft=0 marginright=0 margintop=0>
>
>
<cfinclude template="#pg#" />
>
>
> <style>
> body {
> background:none;
> }
> </style>
>
>
</cfdocument>
>
> <cfheader name="Content-Disposition"
> value="attachment;filename=#pgName#.pdf" />
> <cfcontent type="application/octet-stream"
> file="#expandPath('.')#/temp/#pgName#.pdf" deletefile="yes" />
>
>
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" 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/groups/opt_out.