! -> Note
$ -> Affected files
+19-Aug-2008 Joe Hunt
+# Fixed some color conversion problems in the new PDF Engine
+$ /reporting/includes/pdf_report.inc
+ /reporting/includes/class.pdf.inc
+
19-Aut-2008 Joe Hunt
! Optimized the textwraplines in pdf_report.inc and header2.inc
/reporting/includes/pdf_report.inc
*/
function setStrokeColor($r,$g,$b,$force=0)
{
- TCPDF::SetDrawColor(255*$r,255*$g,255*$b);
+ TCPDF::SetDrawColor($r,$g,$b);
}
/**
* this sets the line drawing style.
$this->SetLineWidth($width);
}
- function Text($x, $y, $txt, $stroke=0, $clip=false)
+ function Text($x, $y, $txt, $stroke=0, $clip=false)
{
TCPDF::Text($x,$y, TCPDF::unhtmlentities($txt), $stroke, $clip);
}
function SetDrawColor($r, $g, $b)
{
- $this->setStrokeColor($r / 255, $g / 255, $b / 255);
+ $this->setStrokeColor($r, $g, $b);
}
function SetTextColor($r, $g, $b)
{
- TCPDF::SetTextColor($r / 255, $g / 255, $b / 255);
+ TCPDF::SetTextColor($r, $g, $b);
}
function Text($c, $txt, $n=0, $corr=0, $r=0)