[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [bug #31308] Issue with intervention generation

From: Mario
Subject: [Dolibarr-bugtrack] [bug #31308] Issue with intervention generation
Date: Mon, 11 Oct 2010 21:02:41 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3


                 Summary: Issue with intervention generation
                 Project: Dolibarr
            Submitted by: le_top
            Submitted on: Mon 11 Oct 2010 09:02:40 PM GMT
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: CVS-DEV
        Operating System: None



Demonstration of the issue on

The page layout of the generated PDF is not ok.

I managed to partially work around issues by changing a section of the pdf
generation code like this:

                                                $curY = $nexY+3;

                                                $datetext =
dol_htmlentitiesbr($outputlangs->transnoentities("Date")." :
".dol_print_date($fichinterligne->datei,'dayhour',false,$outputlangs,true)." -
".$outputlangs->transnoentities("Duration")." :
                                                $desc =

                                                $pdf->SetXY (10, $curY);
                                                //$pdf->writeHTMLCell(0, 3,
$this->marge_gauche, $curY, $datetext."<br />".$desc, 0 /* no border */, 1 /*
Beginning of next line */, 0 /* No background */, true);
$pdf->writeHTML($datetext."<br /><br />".$desc);
                                                $nexY = $pdf->GetY();

//                                              $pdf->SetXY (10, $curY + 3);
//                                              $pdf->writeHTMLCell(0, 3,
$this->marge_gauche, $curY + 3, $desc, 0, 1, 0);

This modification solves an issue with writeHTMLCell that seems to make the
vertical size of a cell bigger and bigger for a reason I tried to dig into but
which seems to require some experience about FPDF to fix it while still using

Further, actual multipage logic is missing.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]