sivarajankumar / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Trouble adding chart legend to a PDF #143

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I am trying to add a chart legend to a PDF. I can add the chart but am 
unable to add the legend.

Here is the code:
public class PDFreport extends PDF
{

....

public function addChart
(chart:VBox,pageNum:int,width:int,height:int,x:int,y:int):void
{
   this.gotoPage(pageNum);
   this.addImage( chart.getChildAt(0), x, y, width, height, 
ImageFormat.PNG, 100, 1 ); // add chart
   this.addImage( chart.getChildAt(1), x, 180, width, 20, ImageFormat.PNG, 
100, 1 ); // add legend
}

...

the second addImage call is working.

Please advise,

Thanks,

Ariel Kornberg

Original issue reported on code.google.com by akornb...@gmail.com on 16 Jul 2009 at 5:04