
890
DEVELOPING
COLDFUSION 9 APPLICATIONS
Office file interoperability
Las
t
upda
te
d 8/5/2010
Working with PowerPoint presentation files
You use the
cfdocument
tag to convert a PowerPoint presentation (PPT file) to a PDF document.
Example
The following example converts a PowerPoint presentation to a PDF file.
<cfdocument
format="pdf"
srcfile="C:\presentations\MyPresentation.ppt"
filename="C:\presentations\MyPresentation.pdf">
</cfdocument>
Using cfpresentation
The
cfpresentation
tag is the parent tag for one or more
cfpresentationslide
tags, where you define the content
for the presentation, and the
cfpresenter
tags, which provide information about the people presenting the slides.
You use the
cfpresentation
tag to convert a PowerPoint presentation to an Adobe Connect presentation or HTML.
Browsers like Internet Explorer, Mozilla Firefox, and Safari are all compatible with the conversion from PPT to a
Connect presentation or HTML.
For complete information about
cfpresentation
, and
cfpresentationslide
, see
CFML Reference
.
Examples
The following example converts a PowerPoint presentation to an Adobe Connect presentation.
<cfpresentation
title="my presentation"
directory="C:\presentations\"
overwrite=true>
<cfpresentationslide
src="#ppttemplate#backgrounds.ppt"
slides="1">
</cfpresentationslide>
<cfpresentationslide
duration="4"
video="video1.flv">
Sample slide
</cfpresentationslide>
</cfpresentation>
The following example converts an HTML file to a PowerPoint presentation.