Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Flex Charting - Generating PDF and Images

Avatar

Level 2
Is there any way with Flex Charting (or some 3rd party tool
integrated with Flex) to output a FlexChart as a PDF or an image
for inclusion in a report?
4 Replies

Avatar

Level 2


Yes there is.



Adobe® LiveCycle® Data Services ES
Developer’s Guide (PDF)

lcds_dev_guide.pdf



Chapter 17

Page 275



import mx.graphics.ImageSnapshot;



[Bindable]

public var balanceSheetImage:String;



private function generatePDF():void {

var snapshot:ImageSnapshot =

ImageSnapshot.captureImage(balanceSheet);

balanceSheetImage =
ImageSnapshot.encodeImageAsBase64(snapshot);

snapshot = ImageSnapshot.captureImage(earnings);

earningsImage = ImageSnapshot.encodeImageAsBase64(snapshot);

}

Avatar

Level 2
ok, and about the image? Are there any way to generate an
image from flex chart in the server-side?

Avatar

Level 1
Hi,

I want to save a flex page to PDF which consists of a chart
and a grid. I suppose LCDS can be used to do this, but I would like
to know alternatives without having to buy LCDS.



Thanks,

Leslie Francis

Avatar

Former Community Member
@Leslie,



we use JasperReports for this purpose. Main reason was that
JasperReports is more flexible in report generation.



Ries