From a988f608977140a3c5a42c720be73a5308fe149b Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 2 Aug 2023 08:32:00 +0000 Subject: [PATCH] Added orientiation (default "P") to Label --- src/Label/PDF_Label.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Label/PDF_Label.php b/src/Label/PDF_Label.php index eb93bec6..fcf72ecb 100644 --- a/src/Label/PDF_Label.php +++ b/src/Label/PDF_Label.php @@ -132,7 +132,7 @@ class PDF_Label extends tfpdf { } // Print a label - function Add_Label($text) { + function Add_Label($text,$orientation = 'L') { $this->_COUNTX++; if ($this->_COUNTX == $this->_X_Number) { // Row full, we start a new one @@ -141,7 +141,7 @@ class PDF_Label extends tfpdf { if ($this->_COUNTY == $this->_Y_Number) { // End of page reached, we start a new one $this->_COUNTY=0; - $this->AddPage(); + $this->AddPage($orientation); } }