|
ColdFusion 9.0 Resources |
Using cfpresentationThe 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. ExamplesThe 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. <cfpresentation
title = "text string"
format= "ppt"
destination="#generated#html_to_ppt_01.ppt"
backgroundColor = "YELLOW"
overwrite = "yes">
<cfpresentationslide
Title="Q1 Sales Figures"
duration="14">
<h3>Q1 Sales Figures</h3>
<cfchart
format="png"
showborder="yes"
chartheight="250"
chartwidth="300"
pieslicestyle="sliced">
<cfchartseries type="pie">
<cfchartdata
item="Europe"
value="9">
<cfchartdata
item="Asia"
value="20">
<cfchartdata
item="North America"
value="50">
<cfchartdata
item="South America"
value="21">
</cfchartseries>
</cfchart>
</cfpresentationslide>
<cfpresentationslide
src="cfdocument_pos24.html"
duration="15" />
</cfpresentation>
The following example converts a PowerPoint presentation to a Connect presentation. <cfpresentation
title="my presentation"
directory="C:\presentations"
overwrite=true>
<cfpresentationslide
src="#ppttemplate#backgrounds.ppt"
slides="1-3,5">
</cfpresentationslide>
<cfpresentationslide
duration="4"
video="video1.flv">
Sample slide
</cfpresentationslide>
</cfpresentation>
|