@Al, thanks for the quick reply!  I started fiddling around with your 
suggestion, but before I got far, I read Alan's link which exactly chimed 
with our setup.  So I hopped to his suggestion first.
 
@Alan, that hit the nail on the head.  Thank you!  I have the following 
lines in our application.cfm page...
 

> <cfheader name="Pragma" value="no-cache">
> <cfheader name="Cache-Control" value="no-cache">

 
Since I did not want to lose these lines for the entirety of our site just 
to enable PDF downloads, I learned I can add the following tag to my 
specific PDF-supplying page to clear any prior header info...
 

> <cfset getPageContext().getResponse().reset()>

 
Thank you again for that link that I completely missed when searching for 
my error. 
 
 

On Monday, April 29, 2013 10:38:07 AM UTC-4, [email protected] wrote:

> 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.


Reply via email to