Bonjour, j’ai finalement trouvé un module qui me permet d’ajouter des lignes supplémentaire (Module CustomFields FR - Dolibarr ERP CRM Wiki). Le problème qui se pose maintenant c’est que lorsque je veux afficher sur mon pdf plus de deux donnée, la dernière se positionne à la place de la première.
[code]
//AFFICHAGE DE LA PREMIÈRE DONNÉE
$pdf->SetXY($this->marge_gauche, $tab_top);
$pdf->MultiCell(190,5,$outputlangs->transnoentities(« Description : »),0,‹ L ›,0);
//$pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur-$this->marge_droite, $tab_top + 5);
$pdf->SetFont(‹ ›, ‹ ›, $default_font_size - 1);
$pdf->SetXY($this->marge_gauche, $tab_top + 5);
$text=$object->description;
//AFFICHAGE DE LA DEUXIÈME DONNÉE
$pdf->SetXY($this->marge_gauche, $tab_top + 10);
$pdf->MultiCell(190,5,$outputlangs->transnoentities(« Marque : »),0,‹ L ›,0);
//$pdf->line($this->marge_gauche, $tab_top + 10, $this->page_largeur-$this->marge_droite, $tab_top + 10);
$pdf->SetFont(‹ ›, ‹ ›, $default_font_size - 1);
$pdf->SetXY($this->marge_gauche, $tab_top + 15);
$text=$object->customfields->cf_marque;[/code]
Pièces jointes :
Bonjour,
J’ai finalement trouver comment faire. J’utilise : $pdf->MultiCell(190,5,$outputlangs->transnoentities(« Un titre »)." : " . $outputlangs->transnoentities($object->MaDonnéeDeLaBDD),0,‹ L ›,0);