From 9050b2421e7fddb5943eaf9bd086ee0cc45ecc89 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Sun, 27 Feb 2011 12:13:13 +0100 Subject: [PATCH] 5.9.059 --- tcpdf.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index 5d4c865..dcd9835 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -4011,7 +4011,7 @@ class TCPDF { public function Header() { if ($this->header_xobjid < 0) { // start a new XObject Template - $this->header_xobjid = $this->startTemplate($this->w, $this->tMargin - $this->header_margin); + $this->header_xobjid = $this->startTemplate($this->w, $this->tMargin); $headerfont = $this->getHeaderFont(); $headerdata = $this->getHeaderData(); $this->y = $this->header_margin; @@ -4051,8 +4051,8 @@ class TCPDF { $this->SetX($header_x); $this->MultiCell($cw, $cell_height, $headerdata['string'], 0, '', 0, 1, '', '', true, 0, false); // print an ending header line - $this->SetLineStyle(array('width' => 0.85 / $this->getScaleFactor(), 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); - $this->SetY((2.835 / $this->getScaleFactor()) + max($imgy, $this->GetY())); + $this->SetLineStyle(array('width' => 0.85 / $this->k, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); + $this->SetY((2.835 / $this->k) + max($imgy, $this->y)); if ($this->rtl) { $this->SetX($this->original_rMargin); } else {