Merge branch 'ticket-12379-updateLabelgenerateEan' into develop
This commit is contained in:
commit
de856a6c7a
@ -12,7 +12,7 @@ class GenerateBarcode {
|
||||
const _NB_PER_LINE_ = 4;
|
||||
const _TOTAL_PER_PAGE_ = 16;
|
||||
const _NB_PER_LINE_BIG_ = 4;
|
||||
const _TOTAL_PER_PAGE_BIG_ = 9;
|
||||
const _TOTAL_PER_PAGE_BIG_ = 10;
|
||||
|
||||
public function __construct() {
|
||||
if (is_null(self::$barcode_directory)) {
|
||||
@ -162,7 +162,8 @@ class GenerateBarcode {
|
||||
$total_per_page = self::_TOTAL_PER_PAGE_BIG_;
|
||||
$font_size = 6;
|
||||
$font_size_ref = 10;
|
||||
$margin = 3;
|
||||
$margin = 0;
|
||||
$margin_top = 0;
|
||||
} else {
|
||||
// 48*17
|
||||
$width = 48;
|
||||
@ -174,6 +175,7 @@ class GenerateBarcode {
|
||||
$total_per_page = self::_TOTAL_PER_PAGE_;
|
||||
$font_size = 5;
|
||||
$margin = 9;
|
||||
$margin_top = 12;
|
||||
}
|
||||
|
||||
// données test
|
||||
@ -230,7 +232,7 @@ class GenerateBarcode {
|
||||
ob_start();
|
||||
$pdf = new FPDF('P', 'mm', 'A4');
|
||||
$nb_per_page = 0;
|
||||
$pdf->SetMargins($margin,12,$margin);
|
||||
$pdf->SetMargins($margin,$margin_top,$margin);
|
||||
$pdf->SetAutoPageBreak(FALSE);
|
||||
$pdf->AddPage();
|
||||
$pdf->SetFont('Arial','',14);
|
||||
|
Loading…
Reference in New Issue
Block a user