Hi,

In some situations the legend is not properly drawn in pdf. For me it is 
happening on the bottom of the page (right column) when the Image function 
in tcpdf.php evaluates $this->y:

if((($this->y + $h) > $this->PageBreakTrigger) AND empty($this->InFooter) 
AND $this->AcceptPageBreak()) {

and breaks the page even it shouldn't. The result is: the icon image is 
placed on the left of the new page and then the legend text for this icon 
is placed on the bottom right of this new page.

I have solved this by adding:

$this->SetXY($x, $y);

here:

                .....
                        foreach ($grpClassList as $cls) {
                        $clsStr = $cls[0];
                        $icoUrl = $cls[1];
                        $clno = 0;
 
                 $this->SetXY($x, $y); /* ADDED*/
                // Output PDF
                        $this->Image($icoUrl, $x, $y, $icoW, $icoH);
                        $this->SetFont($this->defaultFontType, "", 
$this->defaultFontSize);
                .....

regards, dejan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to