fix margin
This commit is contained in:
parent
c770900dac
commit
2d3d3a4b7c
@ -201,7 +201,11 @@ class GenerateBarcode {
|
||||
ob_start();
|
||||
$pdf = new FPDF('P', 'mm', 'A4');
|
||||
$nb_per_page = 0;
|
||||
$pdf->SetMargins(9,12,9);
|
||||
if($generate_ref) {
|
||||
$pdf->SetMargins(9,13,9);
|
||||
} else {
|
||||
$pdf->SetMargins(9,12,9);
|
||||
}
|
||||
$pdf->SetAutoPageBreak(FALSE);
|
||||
$pdf->AddPage();
|
||||
$pdf->SetFont('Arial','',14);
|
||||
@ -225,13 +229,13 @@ class GenerateBarcode {
|
||||
$pdf->Cell(48, 4, '', 0,0, 'C');
|
||||
} elseif($generate_ref) {
|
||||
$pdf->SetFont('Arial', '', 7);
|
||||
$pdf->Cell(48, 6, substr(utf8_decode($product['decli']), 0, 35), 0,0, 'C');
|
||||
$pdf->Cell(48, 8, substr(utf8_decode($product['decli']), 0, 35), 0,0, 'C');
|
||||
} else {
|
||||
$this->_printLabel($pdf, $product['label'], 1);
|
||||
}
|
||||
}
|
||||
if($generate_ref) {
|
||||
$pdf->Ln(6);
|
||||
$pdf->Ln(8);
|
||||
} else {
|
||||
$pdf->Ln(4);
|
||||
}
|
||||
@ -248,7 +252,7 @@ class GenerateBarcode {
|
||||
}
|
||||
}
|
||||
if($generate_ref) {
|
||||
$pdf->Ln(11);
|
||||
$pdf->Ln(9);
|
||||
} else {
|
||||
$pdf->Ln(13);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user