Added orientiation (default "P") to Label
这个提交包含在:
父节点
a043060a8c
当前提交
a988f60897
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -132,7 +132,7 @@ class PDF_Label extends tfpdf {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print a label
|
// Print a label
|
||||||
function Add_Label($text) {
|
function Add_Label($text,$orientation = 'L') {
|
||||||
$this->_COUNTX++;
|
$this->_COUNTX++;
|
||||||
if ($this->_COUNTX == $this->_X_Number) {
|
if ($this->_COUNTX == $this->_X_Number) {
|
||||||
// Row full, we start a new one
|
// Row full, we start a new one
|
||||||
|
|
@ -141,7 +141,7 @@ class PDF_Label extends tfpdf {
|
||||||
if ($this->_COUNTY == $this->_Y_Number) {
|
if ($this->_COUNTY == $this->_Y_Number) {
|
||||||
// End of page reached, we start a new one
|
// End of page reached, we start a new one
|
||||||
$this->_COUNTY=0;
|
$this->_COUNTY=0;
|
||||||
$this->AddPage();
|
$this->AddPage($orientation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用