i am using pdf library to create dynamic pdf documents.
first i set stroke and fill color
then draw a retangle and a cirle then applied using pdf_fill_stroke()
then set stroke and fill color to another values nd draw a rectangle.
but it only create in blkack. i tried with no. of colors, but all generates black shapes..
pls help
here is the $#@#$@ code
$pdf=pdf_new();
pdf_open_file($pdf, "c:\shapes.pdf");
pdf_begin_page($pdf,735,480);
// Set Fill and Stroke colors
pdf_setcolor($pdf, "stroke", "rgb", 1,0,0);
pdf_setcolor($pdf, "fill", "rgb", 1,0,0);
// Circle
pdf_circle($pdf,60,180,10);
// Rectangle
pdf_rect($pdf,200,150,100,50);
//Stoke
pdf_fill_stroke($pdf);
pdf_setcolor($pdf, "both", "rgb", 0,0.5,0); // BUGGY
pdf_circle($pdf,200,400,30);
pdf_fill($pdf);
pdf_end_page($pdf);
pdf_close($pdf);