projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #13603 from pradpnayak/AdvMailin
[civicrm-core.git]
/
CRM
/
Utils
/
PDF
/
Label.php
diff --git
a/CRM/Utils/PDF/Label.php
b/CRM/Utils/PDF/Label.php
index 0f6a613feb8c35815e0a63bea435fecc864a806b..b2f9c977514bcfdda78de1672dcd9d9cfed06381 100644
(file)
--- a/
CRM/Utils/PDF/Label.php
+++ b/
CRM/Utils/PDF/Label.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
8
|
+ | Copyright CiviCRM LLC (c) 2004-201
9
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-30,7
+30,7
@@
* functionality and smarts to the base PDF_Label.
*
* @package CRM
* functionality and smarts to the base PDF_Label.
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
8
+ * @copyright CiviCRM LLC (c) 2004-201
9
*/
/**
*/
/**
@@
-184,8
+184,10
@@
class CRM_Utils_PDF_Label extends TCPDF {
* @param string $text
*/
public function generateLabel($text) {
* @param string $text
*/
public function generateLabel($text) {
+ // paddingLeft is used for both left & right padding so needs to be
+ // subtracted twice from width to get the width that is available for text
$args = array(
$args = array(
- 'w' => $this->width,
+ 'w' => $this->width
- 2 * $this->paddingLeft
,
'h' => 0,
'txt' => $text,
'border' => 0,
'h' => 0,
'txt' => $text,
'border' => 0,