I am trying to determine if I can create a web service that generates
a PDF document. Then call the web service to return the PDF.

Here is the basic web service I wrote

<cfcomponent displayname="printpdf">
        <cffunction name="printme" returntype="binary" access="remote" 
output="no">
                <cfargument name="myArgument" type="string" required="yes">
                 <cfdocument format="pdf" name="myResult">
                 test
                 </cfdocument>
                <cfreturn myResult>
        </cffunction>
</cfcomponent>

On the calling page I  just do a basic cfinvoke.  The data returned is
binary, but not sure how to get it to render as a PDF.  I've tried
<cfcontent type="application/pdf">  and nothing happens renders.

Any help would be much appreciated.

Thanks
Kevin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243437
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to