
665
DEVELOPING
COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Las
t
upda
te
d 8/5/2010
pdfParam="{pdfparams}" keepBookmark="true"
resultHandler="handleExtractResult"
errorHandler="handleExtractError"/>
<!-- set info-->
<cf:Pdf id="pdftest" action="setinfo"
source="http://localhost:8500/1page.pdf" info="{elements}"
resultHandler="handleExtractResult"
errorHandler="handleExtractError"/>
<!-- thumbnail-->
<cf:Pdf id="pdftest" action="thumbnail"
source="http://localhost:8500/EC205W_JoelGeraci.pdf"
resultHandler="handleThumbnailResult"
errorHandler="handleThumbnailError"/>
<!-- ProcessDDX-->
<cf:Pdf id="pdftest" action="processddx"
ddxString="{ddx}" outputFiles="{outputFiles}" result="handleProcessDDXResult"
fault="handleProcessDDXError"/>
Using the Chart class
The Chart class is the proxy for the ColdFusion Chart service, which provides the functionality of the
cfchart
tag and
its child
chartdata
and
chartseries
tags.
•
You specify the
cfchart
attributes as Chart object properties.
•
You represent chart series in the
chartSeries
element of the chart object. The
chartSeries
element is an arrays
of objects, each of which represents a single chart (
chartseries
tag) document section. These objects include a
type element for the chart type, a chartdata element for the chart data, and elements for any other series attributes.
•
You represent each chart's data as an array of objects, each of which contains an item element and a value element.
You use these arrays as the
chartdata
elements of the chartSeries object.
•
You call the document object execute() function to run the service.
The following example shows how you can use the chart service: