From: Janusz Dobrowolski Date: Fri, 31 Oct 2008 18:14:11 +0000 (+0000) Subject: Fixed buggy output when SetLineWidth is used before first AddPage() call. X-Git-Tag: v2.4.2~19^2~1815 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=754892d8db24bad8aeefd50ba0ce5635d2d8d9b9;p=fa-stable.git Fixed buggy output when SetLineWidth is used before first AddPage() call. --- diff --git a/reporting/includes/tcpdf.php b/reporting/includes/tcpdf.php index 59b9ac1f..48504eb9 100644 --- a/reporting/includes/tcpdf.php +++ b/reporting/includes/tcpdf.php @@ -5006,7 +5006,8 @@ if (!class_exists('TCPDF')) { * @access protected */ function _putheader() { - $this->_out('%PDF-'.$this->PDFVersion); + $this->buffer = '%PDF-'.$this->PDFVersion."\n".$this->buffer; +// $this->_out('%PDF-'.$this->PDFVersion); } /**