initLocalAttribute($node, "points"); $yOrig = $this->getContext("yOrig"); $xOrig = $this->getContext("xOrig"); $points = explode(" ", $this->getContext("points")); $pdf = $this->getPdf(); $pointsArray = array(); foreach($points as $point) { $coords = explode(",", $point); $pointsArray[] = $this->calcInternalValue($coords[0], "mm", "pt")+$xOrig; $pointsArray[] = $this->calcInternalValue($coords[1], "mm", "pt")+$yOrig; } $pdf->Polygon($pointsArray, $sargs); } } ?>