getBarcodeData($text, $this->type); $html = '
'.PHP_EOL; $positionHorizontal = 0; /** @var BarcodeBar $bar */ foreach ($barcodeData->getBars() as $bar) { $barWidth = round(($bar->getWidth() * $this->widthFactor), 3); $barHeight = round(($bar->getHeight() * $this->height / $barcodeData->getHeight()), 3); if ($barWidth > 0 && $bar->isBar()) { $positionVertical = round(($bar->getPositionVertical() * $this->height / $barcodeData->getHeight()), 3); $html .= '
 
'.PHP_EOL; } $positionHorizontal += $barWidth; } $html .= '
'.PHP_EOL; return $html; } }