CFDOCUMENT has a "filename" attribute you can use to save the content to a
file:
<cfdocument
format = "PDF" or "FlashPaper"
filename = "filename"
overwrite = "yes" or "no"
name = "output variable name"
pagetype = "page type"
pageheight = "page height in inches"
pagewidth = "page width in inches"
orientation = "portrait/landscape"
margintop = "number"
marginbottom = "number"
marginleft = "number"
marginright = "number"
unit = "in" or "cm"
encryption = "128-bit" or "40-bit" or "none"
ownerpassword = "password"
userpassword = "password"
permissions = "permission list"
fontembed = "yes" or "no"
backgroundvisible = "yes" or "no"
scale = "percentage less than 100">
HTML and CFML code
</cfdocument>
Peter Tilbrook
ColdGen Internet Solutions
Manager, ACT and Region ColdFusion Users Group
PO Box 2247
Queanbeyan, NSW, 2620
AUSTRALIA
WWW 1: http://www.coldgen.com/ <http://www.coldgen.com/>
WWW 2: http://www.actcfug.com/ <http://www.actcfug.com/>
Telephone: +61-2-6284-2727
E-mail: [EMAIL PROTECTED]
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Knipp, Eric
Sent: Thursday, 21 April 2005 8:09 AM
To: '[email protected]'
Subject: RE: Converting doc/rtf files to flash paper or pdf
You could do it using the MS office API. There are ways to pull the various
properties of a word doc out of it using the ActiveX objects that are part
of Office. The same is true for RTF.
Eric
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Justin Cook
Sent: Wednesday, April 20, 2005 4:58 PM
To: [email protected]
Subject: Converting doc/rtf files to flash paper or pdf
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
________________________________
CONFIDENTIALITY NOTICE: The information contained in this e-mail and
attached document(s) may contain confidential information that is intended
only for the addressee(s). If you are not the intended recipient, you are
hereby advised that any disclosure, copying, distribution or the taking of
any action in reliance upon the information is prohibited. If you have
received this e-mail in error, please immediately notify the sender and
delete it from your system.
----------------------------------------------------------
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