Heya Mark,

I want to be able to send the binary to a different cfc to render.  It
kinda works with my APIs that way right now.  I can refactor around it,
but I thought it would be nice to have the same Document Factory APIs
for both Word Documents and PDFs.

DocumentFactory.cfc
....

<cfcomponent>

        
<!---*******************************************************************
****--->
        <cffunction access="public" name="build" output="false"
returntype="any" hint="Build and return data which can be used later to
render the document.">
                <cfargument name="documentData" type="any">
                <cfthrow message="Method Not Subclassed"
type="Application" extendedinfo="buildDocument">
        </cffunction>

        <cffunction access="public" name="render" output="false"
hint="Fully render a document to the browser.">
                <cfargument name="documentData" type="any">
                <cfthrow message="Method Not Subclassed"
type="Application" extendedinfo="buildDocument">
        </cffunction>


</cfcomponent> 

-----Original Message-----
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 15:32
To: CF-Talk
Subject: Re: Opening CFDocuments data at a later time...

Just a thought.. can you not save the contents of CFDOCUMENT as a file
to serve it later?

MD

On 21/06/05, Allen Manning <[EMAIL PROTECTED]> wrote:
> 
> <http://www.prismix.com/>
> Hello CFTalk,
> 
> I'm using CFDocument in CFMX7 and I would like to save the PDF to the 
> variable indicated by the name attribute, then print it later. Any 
> ideas on how I can do this?
> 
> I searched the docs, but no luck.
> 
> <cfdocument
> format = "PDF"
> overwrite = "yes"
> pagetype = "A4"
> name="output"
> unit = "cm">
> 
> Hello World
> 
> </cfdocument>
> 
> <!--- ERROR: How would I go about doing this? I would like this to 
> render in the browser as if I omitted the name attribute above---> 
> <cfoutput> #output# </cfoutput>
> 
> Many thanks for nay help,
> Al
> 
> Allen Manning, Technical Director - Certified Instructor Prismix Ltd 
> t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w:
> www.prismix.com <http://www.prismix.com> <http://www.prismix.com/>
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210108
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to