Added orientiation (default "P") to Label

pull/2367/head
int2001 2023-08-02 08:32:00 +00:00
rodzic a043060a8c
commit a988f60897
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DFB1C13CD2DB037B
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);
}
}