Fixed buggy output when SetLineWidth is used before first AddPage() call.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 31 Oct 2008 18:14:11 +0000 (18:14 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 31 Oct 2008 18:14:11 +0000 (18:14 +0000)
reporting/includes/tcpdf.php

index 59b9ac1f302f2914d3f36af6798db23b5b103929..48504eb945a7db15c5e70b8cb009410b583e87ee 100644 (file)
@@ -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);
                }
 
                /**