Okay were getting somewhere.  It is still asking me for the password.
In the cfheader you have < value="inline; filename=foo.pdf" >.  Where is
foo.pdf physically located at thispoint and can we strip the password
using cfpdf just before the cfcontent?


-----Original Message-----
From: Raymond Camden [mailto:[email protected]] 
Sent: Thursday, January 22, 2009 2:29 PM
To: cf-talk
Subject: Re: view protected pdf

<cfpdf action="read" source="install.pdf" name="install">

<cfcontent type="application/pdf" variable="#toBinary(install)#">"

The only tricky part is the toBinary to convert the PDF 'object' into
pure binary data. You probably also want to include a file name for
the download.

Here is a better example:

<cfpdf action="read" source="install.pdf" name="install">

<cfheader name="Content-Disposition" value="inline; filename=foo.pdf">  
<cfcontent type="application/pdf" variable="#toBinary(install)#">"


On Thu, Jan 22, 2009 at 4:20 PM, Kenny J. Willis
<[email protected]> wrote:
> How do I output the pdf variable to the client?
>
>
> -----Original Message-----
> From: Dave Watts [mailto:[email protected]]
> Sent: Thursday, January 22, 2009 2:12 PM
> To: cf-talk
> Subject: Re: view protected pdf
>
>> Maybe unrealistic for <cfpdf>, but unrealistic for ColdFusion itself.
>> To protect something with no discernable way back.  You can't
disagree
>> with this.  I realize that we have cfcontent and others that display
>> output.  I find it a miscue to not notice this one way only for pdfs.
>> They tought cfpdf in cf8, but I find it somewhat lacking, so I am
> trying
>> to find a way around it without compromising the files security and
> yes
>> I am aware of what the client can do with it once they have it and I
>> cannot control much of that.  With all these other tools, there has
to
>> be a way.  I have that much faith in this language and I am hoping
> that
>> I am not wrong.
>
> Well, I can certainly disagree with that. In fact, I disagree with
> every statement you've just made.
>
> First, you can use CFPDF to read from a password-protected PDF into a
> PDF variable, which you could write to output or to file. Second, I'm
> not sure what your desired outcome is, in any case. You want it
> secured? not secured?
>
> You might find it useful to describe, as a use case, exactly how you
> want users to interact with PDFs using your application.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318361
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to