diff --git a/core/class/PrintControler.php b/core/class/PrintControler.php index c7457453f55785e7258233dcad01ea2afb99f129..e85b2c3573348162abb65447a9f0ebf9e12aab7a 100755 --- a/core/class/PrintControler.php +++ b/core/class/PrintControler.php @@ -249,14 +249,15 @@ class PrintControler extends PrintFunctions $pdf->Image($filename_QR, 7, 3); } + $pdf->Cell(20, 5, "", 0, 0, 'L', false); if ($this->array_print[$cpt]['initiator'] <> '') { $stmt = $db->query( "select entity_label from entities where entity_id = ?", array($this->array_print[$cpt]['initiator']) ); $resultEntity = $stmt->fetchObject(); - $pdf->Cell(140,5,utf8_decode(_INITIATOR . ' : ' - . $resultEntity->entity_label . " (" . $this->array_print[$cpt]['initiator'] . ")"),0,1, 'C', false); + $pdf->MultiCell(100, 5, utf8_decode(_INITIATOR . ' : ' + . $resultEntity->entity_label . " (" . $this->array_print[$cpt]['initiator'] . ")"), 0, 'C', false); } elseif($this->array_print[$cpt]['typist'] <> '') { require_once "modules/entities/class/class_manage_entities.php"; $entity = new entity(); @@ -266,10 +267,10 @@ class PrintControler extends PrintFunctions array($initiator['ID']) ); $resultEntity = $stmt->fetchObject(); - $pdf->Cell(36,5,utf8_decode(_INITIATOR . ' : ' - . $resultEntity->entity_label . " (" . $initiator['ID'] . ")"),0,1, 'L', false); + $pdf->MultiCell(36,5,utf8_decode(_INITIATOR . ' : ' + . $resultEntity->entity_label . " (" . $initiator['ID'] . ")"), 0, 1, 'L', false); } - $pdf->SetFont('Arial','B',14); + $pdf->SetFont('Arial', 'B', 14); //BREAK A LINE $pdf->SetY($pdf->GetY()+4);