ClibPDF -- problems with cpdf_rect and cpdf_lineto
| From: | galkin | Date: | Fri, 20 Apr 2001 00:23:41 +0000 |
| Subject: | ClibPDF -- problems with cpdf_rect and cpdf_lineto | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49455@lists.php.net to get a copy of this message | ||
Hi,
I've been playing around with ClibPDF and am pulling my hair out trying
to figure out some functions, specifically, cpdf_rect. and cpdf_lineto.
They seem straight forward enough, but I just can't get them to work.
Here's what I've tried so far:
cpdf_setrgbcolor_fill($pdf, 253, 15, 15);
cpdf_rect($pdf,10,300,400,400, 0);
cpdf_closepath($pdf);
cpdf_fill($pdf);
cpdf_stroke($pdf);
and
cpdf_moveto($pdf, 50, 50);
cpdf_lineto($pdf, 200, 350);
cpdf_closepath($pdf);
cpdf_fill($pdf);
cpdf_stroke($pdf);
Any thoughts? What am I doing wrong???
Thanks,
Grant