From 754892d8db24bad8aeefd50ba0ce5635d2d8d9b9 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 31 Oct 2008 18:14:11 +0000 Subject: [PATCH] Fixed buggy output when SetLineWidth is used before first AddPage() call. --- reporting/includes/tcpdf.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /** -- 2.30.2