As far as I know this isn't really possible using cfdocument. 
cfdocument is really designed to take web output and create a PDF or
FlashPaper document, so in order to use cfdocument you'd have to read
the doc or rtf and output it in the cfdocument block.  There used to
be some COM objects available that would allow you to interact with
Word docs pretty easily but I haven't looked into anything like this
lately.

There are several tools in the Java/OSS world that are designed to
interact with documents, but the RTF route would probably be more
fruitful.  What you could do in that case is have people upload an
RTF, a process on the server could convert the RTF to a PDF, and the
user would download a PDF.  This doesn't involve cfdocument of course,
but it's possible to do.  For example, here's a tool that takes an RTF
document and converts it to and XML format that XSL FO can use, and
the Apache FOP project has tools that can generate PDFs fromt his XML
format.
http://rtf2fo.com/
http://xml.apache.org/fop/

Hope that at least gives you some ideas,
Matt

On 4/20/05, Justin Cook <[EMAIL PROTECTED]> wrote:
> In our current project, we need to be able to allow users to upload *.doc or
> *.rtf files and then we were wanting to display those using cfdocument and
> converting those into either flash paper or pdf's.  Is this even possible?
> If so, how can you do it? And if not, does anyone have an idea how this can
> be done? 
> Thanks,
> Justin 


-- 
Matt Woodward
[EMAIL PROTECTED]
http://www.mattwoodward.com
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to