last fix for label size

This commit is contained in:
Marion Muszynski 2017-03-06 12:57:45 +01:00
parent a213779459
commit eae3fc73a4

View File

@ -130,7 +130,7 @@ class GenerateBarcode {
for ($i=1; $i <= $quantity; $i++) {
$this->products[] = array(
'key' => ($id_product.'-'.$id_product_attribute),
'label' => substr(($name_combination . ' ' . $p['name']),0,28),
'label' => ($name_combination . ' ' . $p['name']),
'ref' => $ref,
'decli' => substr($name_combination,0,-1)
);
@ -294,7 +294,7 @@ class GenerateBarcode {
private function _printLabel($pdf, $label, $limit = 1, $width = 48, $height = 4, $font_size = 5) {
$pdf->SetFont('Arial', '', $font_size);
for ($i=0; $i < $limit; $i++) {
$pdf->Cell($width, $height, substr(utf8_decode($label), 0, 35), 0,0, 'C');
$pdf->Cell($width, $height, substr(utf8_decode($label), 0, 30), 0,0, 'C');
}
}