getColumns() * $this->getRows(); } public function getLabelPosition($index) { $printIndex = $index + $this->getLabelIndexOffset(); $row = (int)($printIndex / $this->getColumns()); $col = $printIndex - ($row * $this->getColumns()); $x = $this->getPageMarginLeft() + (($this->getLabelWidth() + $this->getLabelColumnSpacing()) * $col); $y = $this->getPageMarginTop() + (($this->getLabelHeight() + $this->getLabelRowSpacing()) * $row); return [ $x, $y ]; } } ?>